Switch Case Statement: combine multiple cases with same code
I have a switch/case statement where I would like to combine "case 1:" and "case 4:" since both use the same if/then code (rather than duplicate the code in a separate "case 4:" statement --which works), but I can't figure out the syntax.
switch Source do
case 1: and case 4:
if TaxReqd = false and ResvDept = true then
'01Hdr1pymtDep'
else ...
Thanks in advance.
Bob
9 replies
-
Hi bflack, I've not tried this so just off the top of my head could you put the code in a user-defined function and call that for the two cases.
Also, maybe try swapping case 1 and case 4 for case 1 or case 4
Regards John
-
Hi Bob,
if I understood right, according to this link it seems to be not possible:
https://forum.ninox.com/t/q6hdmzw/switch-case-statement-in-ninox
regards Kruna
Content aside
- Status Answered
- 1 yr agoLast active
- 9Replies
- 1006Views
-
4
Following