Page 1 of 1

If functions in Dynare

PostPosted: Tue Apr 27, 2010 8:26 am
by mp_macro
Hello everybody,

I am relativly new with Dynare and so I am wondering wherther it is possible to use if functions (like in matlab) in Dynare.

e.g.:

if alpah>=0.9;
beta=0.2;
else
beta=0;
end

I already checked the half forum but i could not find any subject relating to my question.
Many thanks in advance for answering my question.

With best regards,
mp_macro

Re: If functions in Dynare

PostPosted: Thu Apr 29, 2010 8:51 am
by AssiaEzzeroug
Hi,

yes it is possible to include into your mod-file the following directives:
@#if
@#else
@#endif

see the Dynare macro language documentation

Best