Help about if statement in constraint block

In reply to dave_59:

Hi Dave,

Actually in my first code those were not included. I had only the solve cmd before data but it still didn’t work.
I just tried to add those other solve_b4_constraints just to see if it solves my problem.