Search found 2 matches

by Jam_Toad
Mon Sep 05, 2022 5:38 am
Forum: Support and Development
Topic: "Unexpected Symbol near if" error
Replies: 4
Views: 3183

Re: "Unexpected Symbol near if" error

A shortcut for what? And also, obviously your other engines use a different programming language, this code is utter gibberish. But why it fails? You start an assignment and then open a block with a codeword leaving the assignment hanging in the air id say. Neither makes the if block any sense, &qu...
by Jam_Toad
Sun Sep 04, 2022 4:28 am
Forum: Support and Development
Topic: "Unexpected Symbol near if" error
Replies: 4
Views: 3183

"Unexpected Symbol near if" error

Howdy!! I am kinda brand new here and I just had a really quick question. How come this code errors? I have used this same code in other engines/frameworks and it works fine. local foo = if true then "bar" else "hello world" Is this not a valid short circuit in Love2D? Thank you ...