I'm working on a mogrt and have gotten stuck on how to add an option to extend the position around a series of if/else statements that I already have in place. The current series of statements controls optional build in/build out animation:
Your code is a mess to begin with due to not being properly formatted and of course you are not doing any actual nesting/ branching, hence the conditionals basically do nothing because one of the test conditions is always met, hence it's basicalyl always set to tru. You need to obey operator precedence and add more structure by nesting the if statements along with cleaning up the code by defining variables and reusing them instead of always writing out the full functions.
Maybe the formatting didn't translate properly when I copied and pasted, but so far as I understand everything, it is all correct. Here's a screenshot that shows all the indentations for the if/else statements, plus all of the variables that I've created:
For nesting/braching, do you mean turning the if/else statements into their own variables? Or something else?