Well for the red cash you are toggling it off BEFORE using a variable check.Not sure about the blue cash.
and also, when doing the namedbrick>vce_ifvariable, that will call the onvariabletrue/falses for that brick, lines 1-4
Baump