Sign in to follow this  
Followers 0
adamgal

help with select

3 posts in this topic

can I put more than one statement in each case?

Share this post


Link to post
Share on other sites



Yes.

Example:

Select
   Case @DesktopWidth = "1024" AND @DesktopHeight = "768"
     ;Some code
      
   Case @DesktopWidth = "800" OR @DesktopWidth = "1208"
     ;Some code
EndSelect

Share this post


Link to post
Share on other sites

Here is a simple example that I have used recently.

As for this, I would have to say yes.

Select
      Case $width = '640'
         $x = '469'
         $y = '304'
      Case $width = '800'
         $x = '619'
         $y = '449'
      Case $width = '1024'
         $x = '840'
         $y = '614'
      Case $width = '1280'
         $x = '1084'
         $y = '844'
      Case $width = '1600'
         $x = '1084'
         $y = '844'
   EndSelect

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0