A general question: do the logical operators and and or also accept numbers as operands, and do they consider 0 false and any other value true, like in C?
Yes, GAME Code is written in PHP, which is written in C. So, in inherits some features of its grandparent language. Like in PHP, which is its parent language, variables are untyped. So, any empty, zero, or null value is false, and any non-false value is true.
And am I correct in assuming there is a distinction between using inc (or empty) as an operator in an expression or as an independent command, where only in the latter case it alters its argument?
Yes, that's correct. Commands may change the values of variables, but operators in expressions just return values without changing them.
is let a inc var a; the same as inc a; ?
let is not a command in GAME Code. You want to use set. With that change, yes, though using the inc command will be more efficient.
Yes, GAME Code is written in PHP, which is written in C. So, in inherits some features of its grandparent language. Like in PHP, which is its parent language, variables are untyped. So, any empty, zero, or null value is false, and any non-false value is true.
Yes, that's correct. Commands may change the values of variables, but operators in expressions just return values without changing them.
let is not a command in GAME Code. You want to use set. With that change, yes, though using the inc command will be more efficient.