Not sure about the answer on your main question but maybe you can just use a scalar parameter instead of a static bool? Use 1.0 for true and 0.0 for false. It would also be best to clamp/ ceil/ floor its value. You might also consider using IF or LERP here, though, there could be some performance difference since, you might still operate both sides of the condition on runtime but I don’t think it is anywhere noticeable especially for simple operations. Hope that helps!