iPhone If statement

Frank M

macrumors member
Original poster
Aug 20, 2019
36
3
New Jersey
1-7-20

Can an IF statement in a shortcut contain an Or condition?

If var1 is ABC or XYZ
...
Otherwise
...
End If

I guess if I had a small number I could code a separate IF for each, but a large number would require a vast amount of additional code.

Thanks for any help you can provide.

Frank M
 

TiggrToo

macrumors 65816
Aug 24, 2017
1,115
3,158
Out there...way out there
1-7-20

Can an IF statement in a shortcut contain an Or condition?

If var1 is ABC or XYZ
...
Otherwise
...
End If

I guess if I had a small number I could code a separate IF for each, but a large number would require a vast amount of additional code.

Thanks for any help you can provide.

Frank M
What language are you talking about?
 

NoBoMac

Moderator
Staff member
Jul 1, 2014
2,640
1,014
No.

Shortcuts is not fully-formed enough to do large/complex tasks easily. Sure, can do some complex stuff, but lots of hacks and hoop jumping at times.
 

Frank M

macrumors member
Original poster
Aug 20, 2019
36
3
New Jersey
Thanks for responding to my post. I’m learning some of Shortcuts’ limitations slowly but surely.
However, over time (with help from MacRumors staff) I have found numerous workarounds to issues I have encountered in developing my shortcuts.

Frank M
 

Frank M

macrumors member
Original poster
Aug 20, 2019
36
3
New Jersey
Thanks for your reply. I did add additional IF statements into my shortcut and got the code to work as expected.

Frank M