TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Lynn Emery
NA
4
18.9k
Switch Statements
Jan 29 2014 5:38 PM
Hi I have a program which uses a Switch statement.
Based on the case chosen I want a variable to be set to allow one of two options either "one" or "zero".
I have tired to use an OR statement within the case but it hasn't worked (See below).
Does anyone know a way around this? At the moment it is only allowing one value which is "one" but I want it to allow either "one" or "Zero".
Thanks in advance.
Switch (PLCData)
{
Case "01"
Message ="one";
AllowedValue ="one" || AllowedValue ="zero";
break
;
Case "02"
}
Reply
Answers (
1
)
Having a problem at TimeSpan
how to create vocEnhancer game project .