Obviously I'm doing something wrong, though I can't tell what:
But when I changed the if-then-else to its contrapositive:
Can someone tell me what in the world I'm doing wrong in the first example? It looks fine to me...but I've run into this problem before.
if GetVariable("rift_sugar") < GetVariable("rift_comm_max") or GetVariable("grecMax") ~= "ON" then
...Code that starts my awesome loop script.
else
ColourNote("yellow","black","Rift is full and riftmax flag is on.")
end -- if
When I try to load the plugin, I receive the error:
Line 1887: Element name must start with letter or underscore, but starts with " " (Cannot load)
But when I changed the if-then-else to its contrapositive:
if GetVariable("rift_sugar") == GetVariable("rift_comm_max") and GetVariable("grecMax") == "ON" then
ColourNote("yellow","black","Rift is full and riftmax flag is on.")
else
..Awesome loop code
end -- if
Can someone tell me what in the world I'm doing wrong in the first example? It looks fine to me...but I've run into this problem before.