Defining a "Trigger/call builds on other projects" build step with "Counter Parameter Factory" as follow:
FROM = 1
TO = $VARIABLE
STEP = 1
It should do nothing, I mean, do not build step, if $VARIABLE is zero but it is failing with following exception:
FATAL: Counting with step size 0 will not terminate!
java.lang.RuntimeException: Counting with step size 0 will not terminate!