Hi JT,
If I understand well, you will have a database field([Layoutnumber]) that will indicate which layout should print. Well you will need the above expression to be applied on all of your layouts, each having the appropriate value for the layout to print or not. I do not see any problem with that logic. If you applied this expression only to your 1st layout, then it will not work. If you need help setting this up, you can open a new support call on our website and we will gladly help you.
Thanks. Regards,
Olivier