e.g.
Code: Select all
IF 1 NOT= 1 THEN
MESSAGE( "not eq" )
ELSE
MESSAGE( "eq" )
END
Code: Select all
IF 1 <> 1 THEN
MESSAGE( "not eq" )
ELSE
MESSAGE( "eq" )
END
NOT=,!=,LE,GE,LT,GT
Code: Select all
IF 1 NOT= 1 THEN
MESSAGE( "not eq" )
ELSE
MESSAGE( "eq" )
END
Code: Select all
IF 1 <> 1 THEN
MESSAGE( "not eq" )
ELSE
MESSAGE( "eq" )
END
Any examples of using a list to store integers instead of strings?steve wrote: ↑Fri Nov 09, 2018 2:53 pmreturns a character string from a list, based on an integer position
LISTITEM (list , element , character)
exampleCAVEAT/BUGCode: Select all
vlist = "Monday,tuesday,wednesday,thursday,friday,saturday,sunday" v1 = listitem(vlist,1,","{ message ("first day is ",v1) #prints Monday
If you use a field for defining your starting list, then do not use the comma delimiter as it doesn't work.
Code: Select all
#set up example alpha field with comma delimited text put( "Monday,tuesday,wednesday,thursday,friday,saturday,sunday", {mytext field.Alpha}) #retrieve field into variable vlist = TEXT( {mytext field.Alpha}) v1 = listitem(vlist,1,",") #or v1 = listitem({mytext field.Alpha},1,",") - doesn't work either vcount =listsize(vlist,",") message ("Count: ",vcount) #returns 1! message ("first day is ",v1) #errors: prints Monday,tuesday,wednesday,thursday,friday,saturday,sunday
Code: Select all
vtext = DECODE-HEX-STRING("4e6576657220676f6e6e61206769766520796f75207570")
MESSAGE("Decoded text: ",vtext)
Code: Select all
vtext = DECODE-BASE64-STRING("aHR0cHM6Ly9iaXQubHkvdGhlLXBvd2VyLW9mLWxpbms=")
MESSAGE("Decoded text: ",vtext)