Hi!
Don't know if this has been asked before, but I'd like to know if there's any difference between 'and' and '&&','or' and '||'.
Thanks!
Nope. They're the same.
and
and or
were added to the language later, I guess to make it easier for people where & and | symbols are not on the standard keyboard?
1 2 3 4 5 6 7 8 9 10 11 12 13
|
and &&
or ||
not !
not_eq !=
bitand &
and_eq &=
bitor |
or_eq |=
xor ^
xor_eq ^=
compl ~
|
where (...) symbols are not on the standard keyboard? |
That is in fact the reason for
true
,
false
to exist. (as notebooks don't have numpad)
Last edited on