Thread: JJM-Script
View Single Post
Sfaizst

JCF Member

Joined: Mar 2008

Posts: 99

Sfaizst is an asset to this forum

Jan 6, 2011, 04:32 AM
Sfaizst is offline
Reply With Quote
About the convert function, i not really like to use this function, but sometimes it can be importent (atm i only see it relevant for converting a integer to a string, so that it is possible to send echos related to something).

I tested it, and i have to say SORRY, i documentated it completly wrong
the first parameter is the variable that you want to convert to an other, the second parameter is the other one...

here a little example script (tested and working):

Quote:
var
InVar : Integer = 1
OutVar, T1 : Byte = 0
T2 : Byte = 1
Echo : String=Convert is working very well...
begin
If (OutVar = T1)
Convert(InVar,OutVar)
end
If (OutVar = T2)
Outvar := 2
jjecho(Echo)
end
end.
Have fun, working now on more functions i try to add somethinglike Goto (some know this from basic) to the script language, with this can be for, while,... possible

Edit: Booleans are Bytes in fact, you can read Booleans like Bytes in JJ's ram too but JJM will handle them only as boolean so 0 = false and 1-255 = True, so you can read the triggers themselfs as boolean