Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 6th, 2025, 9:35 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: arrays and switch structures
PostPosted: January 24th, 2005, 4:05 pm 
Offline

Joined: December 24th, 2004, 4:01 pm
Posts: 12
Hi everyone,

First, let me warn you I'm just beginning with scripting so please excuse me if I fail to make myself clear.
Anyway, I need a 'switch' structure in which every 'case' checks if a value entered by the user - stored in a variable - equals any of the items inside an array. If not, then the next 'case' checks if the value equals any item in a second array, and so on. Or maybe a switch structure and arrays is not the appropriate approach?
Thank you in advance.

[/i]


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 22 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group