1. Its a "test" to see if a short will evaluate as a boolian. That is why I use the 'If myB' with no other condition checks on it.
2. Since its a test only, I only want it to happen once, not an infininte loop. So I set the 'short' to 2 so it only does it once. Setting the value in the variable would be up to the programmer to ensure it is either 0 or 1.
3. All variables are exactly '0.0000' when a script first runs. I have never tested a short to see if it rounds up or down, or if it just truncates the decimal positions with no rounding.
4. When you use a short, you never have to worry about the < or > checks since the decimal positions are not kept. So, if I move 1.3 to myB, a check for myB == 1 will return true since its 'stored' value will be '1.0000', not '1.3000'. You only need the < or > if you are testing for a range of whole numbers. Such as <= 5 which would check for a value less than 6.
5. For false checks, you can use 'else'.
if myB messagebox "true check"else messagebox "false check"endif
But, I have not tested if a short will behave like a boolian, so this might all be a mute point.