JASS:
function findValue takes nothing returns boolean
return ( GetUnitPointValue(GetFilterUnit()) == 12 )
endfunction
JASS:
The return line gives the error "Cannot convert integer to boolean"
JASS:
function check takes nothing returns boolean
return (GetBooleanAnd (checkBetween, findValue))
endfunction
also: in jasshelper, the above lines are shown like this:
JASS:
function check takes nothing returns boolean
return ( GetBooleanAnd((1) , (2)) )
endfunction
So, my question, obviously, is how do i fix this error?
also: the error shows up twice in jasshelper for the same line, does that mean the same error is coming for both 'checkBetween' and 'findValue'?