Profile image

>= not working in labels? SOLVED

7,308 iPilot  one year ago

hello
this code below works fine
<alpha=#{MasterCautionTest=1?"FF":"00"}>

But this code will not work, the only difference is the greater-than-or-equal-to sign instead of an equals sign... does this not work in labels for some reason?

<alpha=#{MasterCautionTest>=1?"FF":"00"}>

SOLVED:

Mac Text Editor (where I was writing code) has slightly different quotes "" than SP, SP will NOT recognize the quotes if you write them in Mac Tex Editor so you have to replace them in SP. Also you cannot Command-F in text editor to find the different quotes as Mac cannot tell the difference : /

  • Log in to leave a comment
  • Profile image

    @iPilot Ah, that would do it. Glad you got it figured out!

    one year ago
  • Profile image
    7,308 iPilot

    @HuskyDynamics01 I figured out the problem, on Mac text editor which is where I was writing code, the quotes "" are slightly different then the ones in simpleplanes even though they come from the same key. It didn't recognize them so it ruined the entire line of code!

    one year ago
  • Profile image

    Well, if MasterCautionTest is a boolean value, there's really no need to have it activate if it is greater than 1, because a boolean can only equal either 1 or 0. Dunno if greater-than/less-than-or-equal-to causes any problems in labels; I haven't noticed any but then again I don't use that operator much.

    one year ago