BeSly Software Solutions About yab Demos About us Admin






Name:

: -- separate commands from each other

Synopsis:
 
print "Hello ":print "World" 

Description:
The colon (':') separates multiple commands on a single line.
The colon and the newline-character have mostly the same effect, only that the latter, well, starts a new line too. The only other difference is their effect within the (so-called) short if, which is an if-statement without the keyword then. Please see the entry for if for more details.

Example:
if (a<10) print "Hello ":print "World!" 
Explanation:

This example demonstrates the difference between colon and newline as described above.



Related: if