tooltiperror
Super Moderator
- Reaction score
- 231
Could somebody test this and post the real results? I'm not even going to try testing anything conditions related with now on a Mac
JASS:
scope PoopScope initializer onInit
//========================================
// - Testing functions, print their input
// integer and return true or false.
//
private function f takes integer i returns boolean
call BJDebugMsg("f - " + I2S(i))
return false
endfunction
private function t takes integer i returns boolean
call BJDebugMsg("t - " + I2S(i))
return true
endfunction
//========================================
// Actions
//
private function callback takes nothing returns nothing
local boolean b
set b = f(1) or t(1)
set b = t(2) or f(2)
set b = f(3) and t(3)
set b = t(4) and f(4)
endfunction
//========================================
// True Initializer
//
private function onInit takes nothing returns nothing
call TimerStart(CreateTimer(), 1.00, function callback, false)
endfunction
endscope