Macro language feature request: the ternary operator ?:

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Macro language feature request: the ternary operator ?:

Postby cfp » Thu Apr 29, 2010 3:55 pm

Hi,

It would make some of my code a lot clearer if your macro language supported the C ternary operator [boolean]?[val_if_true]:[val_if_false].

Expressions such as sas@{index+(index+1<=subdivisions)}(-1) are not particularly clear...

Tom
cfp
 
Posts: 60
Joined: Mon Mar 15, 2010 9:18 pm

Return to Dynare help

Who is online

Users browsing this forum: No registered users and 4 guests