"Total: " + n | 0 | + only concatenates two Texts. Use StringFormat. |
StringFormat("{0}", n) | compile error | it always takes 3 arguments. Add , "". |
UtilityPrint(n) | stops the action | its parameter is Text. Use UtilityPrint(StringFormat("{0}", n, "")). |
"C:\temp" | C:, a tab, then emp | \t is an escape. Write "C:\\temp". |
flags & 4 == 4 | 0 | & binds looser than ==. Write (flags & 4) == 4. |
0 < x < 10 | false | it compares a Bool with an Integer. Write x > 0 && x < 10. |
ok && Risky() | runs Risky() anyway | no short-circuit evaluation |
true == 1, w == 0 | false | different kinds are never equal. Test a handle with !w. |
7 / 2 | 3 | Integer division. Write 7 / 2.0. |
StringFormat("{0}", 0.5, "") | 0.500000 | Reals always show six decimals |
two StringSplits in a loop | wrong parts | the second split replaces the first one's cache |
"apple" < "Banana" | false | ordinal comparison puts all uppercase before lowercase |
a variable set only inside an if | 0 when the branch didn't run | variables that were never assigned at run time start as Integer 0 |