Cannot convert integer to boolean

Emu.Man00

New Member
Reaction score
41
JASS:
function findValue takes nothing returns boolean
    return ( GetUnitPointValue(GetFilterUnit()) == 12 )
endfunction


JASS:
function checkBetween takes nothing returns boolean
    local boolean picked = false
    //code is unimportant, i tried with only these 4 lines
    return picked
endfunction



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? :D

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'?
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top