blizzard wierd IF then else syntax

RangerX

I am justice!
Reaction score
69
simple question is there a reason why they use this type of syntax
JASS:
function Trig_Items_nr_reduce_Conditions takes nothing returns boolean
if ( not Trig_Items_nr_reduce_Func002C() ) then
        return false
    endif
    return true
endfunction


and not something like this
JASS:
function Trig_Items_nr_reduce_Conditions takes nothing returns boolean
if ( Trig_Items_nr_reduce_Func002C() ) then
        return true
    endif
    return false
endfunction
 

W!†A_cRaft

Ultra Cool Member
Reaction score
28
to make life harder, more or less...
you will get so much stuff like that if you analyze the code...

even things like a simple argument reversal:

JASS:
native function BLA_BLA takes unit u boolean b returns nothing
endfunction

BJFunction SOEMTHING takes boolean b unit u returns nothing
     call BLA_BLA(u,b)
endfunction
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      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