Question

"basic stamp 2" I’m having a hard time making a code with conditional statements. Please can...

"basic stamp 2"

I’m having a hard time making a code with conditional statements.
Please can you help me out
Basically it is
Since I have three options which are
A or B or C

I want to to pick let’s say B, so that means I want to open just this one. But I can’t seem to master the IF and ELSE codes as I know I need this ones in the loop

Please provide me the code

will give tumbs up

basic stamp 2


language: pbasic
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Suppose, you options ( which is A/B/C in your case) are stored in variable "option",
then syntax will be,

IF (option = A) THEN

DEBUG "This is option A"

ELSEIF (option = B) THEN

DEBUG "This is option B"

ELSE

DEBUG "THIS is option C"

ENDIF

Add a comment
Know the answer?
Add Answer to:
"basic stamp 2" I’m having a hard time making a code with conditional statements. Please can...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT