(Or as I like to call them, IFFues.... Okay, okay, that was lame.)
I'm flat-out stumped by why this is detected as a problem.
When writing code for a class I want to define, I wanted a method containing an IF/ELSE statement.
I'm not on the correct computer to provide the actual code, so I'll do my best to recreate it as helpfully as possible in a quick pseudocode fashion...
(class MyClass of DCIcon ;for example's sake
(properties)
(method (init)
(var myVariable) ;included in case this was messing it up, but I don't know why it would
(if (condition) ;yadda yadda expression goes there
;thing happens...
)(else
;other thing happens...
) ;end else
) ;end method
) ;end class
(Let me know if this is too vague and I'll try to post my actual code when I get the chance)
The issue with this code is that when compiling, I'm told the line containing "else" should be an expression. Apparently, I can't use "else" there.
....Why not? I may just be missing something obvious, but isn't this the correct usage of "else"?
I'm using Sierra syntax, if that helps.