Running multiple "IF" statements in Free Flow
I have a form that will require me to run multiple "If" statements.
1. When I run a "single" If statement, everything works fine.
2. As soon as I add a "second, third, fourth etc." If statement, I get no output.
a. Note, I will not be using functions since no two If statements will be the same.
3. Any ideas on what I should do to run multiple if statements in one form? Should I be putting something between the statements so that each one runs automatically?
I have copied and pasted an extract of the if statements I need to run. Note that line one contains a variable that will be used through out the script.
input.Anterior_Tail_Spec_Adjusted1 = (input.Anterior_Tail_Spec + 0.25);
input.Piece_1_Anterior_Tail_Variance = (input.Piece_1_Anterior_Tail_Measurement - input.Anterior_Tail_Spec);
if (input.Piece_1_Anterior_Tail_Measurement > input.Anterior_Tail_Spec_Adjusted1)
{
}
input.Piece_1_Anterior_Meat_out_of_limits = input.Piece_1_Anterior_Tail_Variance;
input.Piece_2_Anterior_Tail_Variance = (input.Piece_2_Anterior_Tail_Measurement - input.Anterior_Tail_Spec);
if (input.Piece_2_Anterior_Tail_Measurement > input.Anterior_Tail_Spec_Adjusted1)
{
}
input.Piece_2_Anterior_Meat_out_of_limits = input.Piece_2_Anterior_Tail_Variance;
input.Piece_3_Anterior_Tail_Variance = (input.Piece_3_Anterior_Tail_Measurement - input.Anterior_Tail_Spec);
if (input.Piece_3_Anterior_Tail_Measurement > input.Anterior_Tail_Spec_Adjusted1)
{
}
input.Piece_3_Anterior_Meat_out_of_limits = input.Piece_3_Anterior_Tail_Variance;