I also wonder if having if statements before the function call would be slow for VEX?
I don't mean inside the function itself but before it's decided which function to call.
Say you have 2 parameters, each have 3 options, so have 9 functions. If inside the VOP you have:
if ($option1 == 0 && $option2 == 0)
function00();
...
if ($option1 == 2 && $option2 == 2)
function22();
I wonder if this code is called for each point or only once? I assume only once because options don't change for each iteration.
But actual if statements inside VEX is something I avoid.
Edited by magneto, 01 June 2012 - 09:57 AM.