Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- null_expected(ListData) ->
- TrimData = string:substr(ListData, 1, erlang:length(ListData)-1),
- Cond1 = string:str(TrimData, [10,10]) =/= 0,
- if
- Cond1 == true ->
- true;
- true ->
- Cond2 = string:str(TrimData, [10,0,10,0]) =/= 0,
- if
- Cond2 == true ->
- true;
- true -> false
- end
- end.
Add Comment
Please, Sign In to add comment