Hi Forum Moderators,
I am trying an alternative to the following if-else constraint using a ternary operator
Here is my code snippet using if-else which works as per intention
I observe a Compilation Error.
Generally a semicolon is always written at the end of a sequence expression / property expression. I am curious on why there is an exception with property_expr following the if ( as part of if-else ) ?
( I notice that syntax is valid if I donât have else part )
(B) If I were to add strong operator in consequent as part of both the property expressions
The semicolon ; goes at the end of a property/sequence_spec, not a property/sequence_expr. This means at the end of the entire property/sequence declaration.
âNot supportedâ is a term vendors use when a tool recognizes valid syntax but have not implemented the corresponding functionality.