I created this extremely simple boolean expression in JASS to check for the Y position of a specific knight:
But for some reason, it just refuses to f*cking work
I checked with the JassCraft, and it says the And() function looks like
....
Same situation with the 'Or' function
Could somebody help me out? (btw, the code worked fine before I added the 'And')
JASS:
function IsUnitInBlock2 takes nothing returns boolean
local real Y = GetUnitY(gg_unit_hkni_0001)
if And(Y <= 11650, Y > 13430) then
return true
endif
return false
endfunction
But for some reason, it just refuses to f*cking work
I checked with the JassCraft, and it says the And() function looks like
JASS:
function And takes boolexpr operandA, boolexpr operandB returns boolexpr
....
Same situation with the 'Or' function
Could somebody help me out? (btw, the code worked fine before I added the 'And')