In Nimrod, what is the syntax for bitwise operations?
and
does bitwise and; the issue is rather that if
expects a bool
, not an integer. If you want C-like comparison to 0, simply add it:
>>> if 1:
... echo("hello")
...
stdin(10, 4) Error: type mismatch: got (int literal(1)) but expected 'bool'
>>> if 1!=0:
... echo("hello")
...
hello