Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
-module(helloworld).
-export([start/0]).
start() ->
A = 4,
B = 6,
if
A < B ->
if
A > 5 ->
io:fwrite("A is greater than 5");
true ->
io:fwrite("A is less than 5")
end;
true ->
io:fwrite("A is greater than B")
end.
-module(helloworld).
-export([start/0]).
start() ->
A = 5,
B = 6,
if
A == B ->
io:fwrite("A is equal to B");
A < B ->
io:fwrite("A is less than B");
true ->
io:fwrite("False")
end.