Ludii Forum
Options syntax clash - Printable Version

+- Ludii Forum (https://ludii.games/forums)
+-- Forum: Questions (https://ludii.games/forums/forumdisplay.php?fid=13)
+--- Forum: About the Ludii Grammar (https://ludii.games/forums/forumdisplay.php?fid=15)
+--- Thread: Options syntax clash (/showthread.php?tid=357)



Options syntax clash - Michael - 01-07-2021

I'm trying to learn how to use options and I ran into a problem. The only difference between the two options is a couple of instances of a sign. In the one choice the sign is = and in the other it is <. But I can't put < inside <>, for <<> gives a syntax error. Do I have to include more of the code to work around this?


RE: Options syntax clash - cambolbro - 01-07-2021

Hi,

You could try putting whitespace around the operator, i.e. "< < >". 

If this doesn't work, please attach a .lud that shows the problem and I'll investigate.

Regards,
Cameron


RE: Options syntax clash - Michael - 01-07-2021

That doesn't seem to have done anything. But I found a different mistake, and now I don't get a syntax error, but the <-option doesn't show up.


RE: Options syntax clash - cambolbro - 03-14-2021

Hi,

This problem has been fixed now. The fix will be included in the next Ludii release.

Regards,
Cameron