Guest User

Untitled

a guest
Jun 22nd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. null_expected(ListData) ->
  2. TrimData = string:substr(ListData, 1, erlang:length(ListData)-1),
  3. Cond1 = string:str(TrimData, [10,10]) =/= 0,
  4. if
  5. Cond1 == true ->
  6. true;
  7. true ->
  8. Cond2 = string:str(TrimData, [10,0,10,0]) =/= 0,
  9. if
  10. Cond2 == true ->
  11. true;
  12. true -> false
  13. end
  14. end.
Add Comment
Please, Sign In to add comment