I have bee trying to get the following expression to evaluate properly, but it seems not to like me.
if (h <= m*f) then
World.note "It worked!"
end if
while testing I made sure h was indeed less than m*f, yet it never evaluated to true. Finally I found that when true, the expression evaluated to 0, and when false, -1.
Therefore I had to change the expression to:
if ((h <= m*f) + 1) then
World.note "It worked!"
end if
It works now, but I was wondering what was going on with that?
if (h <= m*f) then
World.note "It worked!"
end if
while testing I made sure h was indeed less than m*f, yet it never evaluated to true. Finally I found that when true, the expression evaluated to 0, and when false, -1.
Therefore I had to change the expression to:
if ((h <= m*f) + 1) then
World.note "It worked!"
end if
It works now, but I was wondering what was going on with that?