Space between fairmath % and +

I was reading ChoiceScript’s source code. A comment caught my attention:

// spaces optional
//     *set foo+2
//     *set foo bar + 2
//     *set bar% +30
Scene.prototype.set = function set(line) {

The line *set bar% +30 doesn’t work for me so I’m wondering if it’s a typo?

It’s probably a typo, this should work though:

*set bar %+ 30
1 Like

This topic was automatically closed 24 hours after the last reply. If you want to reopen your WiP, contact the moderators.