multiple commands

Blitz3D Forums/Blitz3D Beginners Area/multiple commands

The Thick Brummy(Posted 2007) [#1]
If this is written somewhere in the help files, I'm sorry, but I can't find it.
Can I have I have multiple commands on one line?
eg Load sound ".......wav,1"; play sound,1; loop sound,1
or something like that?


degac(Posted 2007) [#2]
?
print:print "This is a command":print "This is another one"



The Thick Brummy(Posted 2007) [#3]
Thanks, I'll try it.


_PJ_(Posted 2007) [#4]
Yeah, use a :

I dont know if this has been fixed in one of the updates, but I seem to recall having problems using :'s after an IF/THEN


Adam Novagen(Posted 2007) [#5]
That'll do ya, alright... It's also a great thing if you want to distribute something in code form, without it being easy to understand. Trust me, if you replace every line break with a : (called a colon) your programs immediately become an almost impenetrable fog!


OJay(Posted 2007) [#6]
and what would stop me from re-replacing your ":" with a line-break again?

anyway...using ":" in blitzbasic is as EVIL as using labels! it makes your code unreadable, unmaintainable und therefore unstable if you dont understand it anymore...


b32(Posted 2007) [#7]
Did you know you can omit the colon ? I saw that in the archives last week:
x = 3 y = 4 Print x * y

Strangly enough it works.