Hello Community,
Watch this video to learn how to add a condition to a single command without using an If statement.
⏯ Controlling Command Flow with Postconditional Expressions
https://www.youtube.com/embed/75YTLp5GiC0
[This is an embedded link, but you cannot view embedded content directly on the site because you have declined the cookies necessary to access it. To view embedded content, you would need to accept all cookies in your Cookies Settings]
Subscribe to InterSystems Developers YouTube to stay up to date!
I'm a very beginner :) but personally I would not recommend such an approach. That "syntax sugar" will only discourage people who come from the world of Java and C#.