multiple commands

Blitz3D Forums/Blitz3D Beginners Area/multiple commands

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?

?
print:print "This is a command":print "This is another one"


Thanks, I'll try it.

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

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!

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...

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.