:?
Blitz3D Forums/Blitz3D Beginners Area/:?
| ||
a colon : ? I don't get it. How is it used? |
| ||
no use for it really, just to keep your code more readable/orginized Example crappy: If hello=1 then color 123,132,123 drawimage image,x,y hello=2 this is more readable: If hello=1 then : color 123,132,123 : drawimage image,x,y : hello=2 |
| ||
this is more readable: It isn't more readable than this:If hello=1 then : color 123,132,123 : drawimage image,x,y : hello=2 If hello=1 color 123,132,123 drawimage image,x,y hello=2 EndIf |
| ||
A colon is simply used to allow multiple commands to be placed on a single line. They do not execute any differently - ie they still execute one after the other. I cannot tell you whether it is good or bad practice to use them. |
| ||
Ok, thanks! |