A question about IF
Posted: Sun Apr 23, 2017 10:06 am
Dear Professor jpfeifer,
I have a question about Macro-processor statement " IF". As you mentioned in this post http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=12770 , I would like to have a model where endogenously uses either one or the other equation depending on the value of the endogenouse variable in that period. You commented that this is a different issue than constructing a mod-file. But I would like to know that how we can deal with this issue?
@#if model_variable <= value
equation1
@#else
equation2
@#endif
Sincelerly,
Leo
I have a question about Macro-processor statement " IF". As you mentioned in this post http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=12770 , I would like to have a model where endogenously uses either one or the other equation depending on the value of the endogenouse variable in that period. You commented that this is a different issue than constructing a mod-file. But I would like to know that how we can deal with this issue?
@#if model_variable <= value
equation1
@#else
equation2
@#endif
Sincelerly,
Leo