The permutations are getting huge.
Maybe, but you don't care about those permutations anyway – you just want to check for the presence of a value in a certain order:
Let [ $checkbox ; YourTable::yourCheckboxField ]
If [ isempty ( $checkbox ]
Set Variable [ $layoutName ;
not isempty ( FilterValues ( $checkbox ; 3 ) ) ; layoutnameA ;
not isempty ( FilterValues ( $checkbox ; 2 ) ) ; layoutnameB ;
Go to Layout [ by name ; $layoutName )
Use the Go to Layout script step. Modify it with “go to layout by name” or “go to layout by number” and provide a calculation.
go to layout Name by calculation [
patternCount( field, “three”) ; layoutA;
patternCount( field, “two”) ; layoutB ;
It would be more robust to use a script with:
If(patternCount( field, “three”))
Else If(patternCount( field, “two”))
As any changes to layout name will not break your code.
I was sure someone could see the simple solution. Shame I couldn't.