HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

using boolexpr arrays to store code

07-09-2008, 04:21 AM#1
chobibo
Hello! I just want to ask if there won't be any problems if i store code functions on boolexpr arrays? Thanks guys!
Collapse code stored on boolexpr arrays:
globals
    boolexpr array Code
endglobals

function Something takes nothing returns nothing
endfunction

function Test takes nothing returns nothing
    set Code=Condition( function Something )
endfunction
07-09-2008, 04:27 AM#2
Feroc1ty
It would be useless ( In my opinion ), but I don't think anything would go wrong. By the way, you shouldn't not use double negatives in your sentences.
07-09-2008, 04:41 AM#3
chobibo
I know it's useless, I was just wondering why there is no syntax error when setting it. btw, what double negatives? "=" thats an equal sign.
07-09-2008, 04:49 AM#4
Feroc1ty
Quote:
Originally Posted by chobibo
I know it's useless, I was just wondering why there is no syntax error when setting it. btw, what double negatives? "=" thats an equal sign.

I mean in your sentence, not the code.
07-09-2008, 07:12 AM#5
DioD
you not able to call boolexpr
07-09-2008, 11:46 AM#6
Captain Griffen
It has to return boolean, and actually return true/false, in order to use it as a condition. Otherwise, Macs desync.