Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Erlang compound boolean expression

Tags:

boolean

erlang

I read the documentation about using and, or operators, but why is the following not evaluating?

X = 15,
Y = 20,
X==15 and Y==20.

I am expecting for a "true" in the terminal, but I get a "syntax error before ==".

like image 874
jeffreyveon Avatar asked Nov 29 '22 04:11

jeffreyveon


1 Answers

Try:

X = 15.
Y = 20.
(X==15) and (Y==20).
like image 133
jldupont Avatar answered Dec 04 '22 00:12

jldupont