Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Frank M

macrumors member
Original poster
Aug 20, 2019
68
4
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
 
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?
 
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.
 
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
 
Thanks for your reply. I did add additional IF statements into my shortcut and got the code to work as expected.

Frank M
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.