See how to add a condition to a single command without using an If statement. In InterSystems ObjectScript, you can control command flow by adding postconditional expressions after most single-line commands. These expressions determine whether a command should be executed.
Read about command postconditional expressions (documentation, 5m): https://docs.intersystems.com/irislat...
Learn about string-to-number conversion in ObjectScript (documentation, 7m): https://docs.intersystems.com/irislat...