IF statements / SWITCH statements

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

cap
Posts: 55
Joined: Fri Oct 17, 2008 11:47 am

IF statements / SWITCH statements

Postby cap » Mon Mar 09, 2009 2:41 pm

In some programming languages there is a way to collapse a series of IF statements that all pertain to the value of some variable; for example, in Matlab or C it would look something like this:


switch x

case x<5
' some code here

case x>5
'some other code here

case x=5
'some code here


end




Does the Eviews language have something like this?



Thanks,
-cap

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13605
Joined: Tue Sep 16, 2008 5:38 pm

Re: IF statements / SWITCH statements

Postby EViews Gareth » Mon Mar 09, 2009 2:57 pm

Nope :(


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests