I needed to go back and make a couple of updates to one of my games that I haven't worked on in quite awhile. It was compiling and working fine before, but last time I touched this project was back on V10, now I'm getting the following syntax error with V12.312
GPC - GLBasic Precompiler V.10.053 SN:20da3ee5 - 3D, NET
"..\Shared\jolib.gbas"(633) error : GPC0001 syntax error
The following function is where the syntax error appears to be occurring.
Any idea what has changed to cause this problem?
FUNCTION IIF: condition, if_true, if_false
IF condition
RETURN if_true
ELSE
RETURN if_false
ENDIF
ENDFUNCTION
Here a wild shot :x... could it be the IIF name of the function?
IIF is now a glbasic command, so it's can't been used as a function name. That why IIF have been marked.
Lol, that's too funny. I recommended it as a core GLBasic function 2 years ago and Gernot had said he would put it on the list!
http://www.glbasic.com/forum/index.php?topic=7562.msg62632#msg62632 (http://www.glbasic.com/forum/index.php?topic=7562.msg62632#msg62632)
howover there have been a few quicks on this command, which im thinks it got fixed recently.
Yes, I believe its been fully fixed now.