answersLogoWhite

0

A conditional expression means 'do something only if certain conditions are met'. For example, consider this short BASIC program...

10 a=0

20 b=a+1

30 PRINT b

40 GOTO 20

Will produce every number unless the break key is pressed. However, changing line 30 to a conditional expression, as in this program...

10 a=0

20 b=a+1

30 IF b/10=INT (b/10) THEN PRINT b

40 GOTO 20

Would only display a value every time the condition in line 30 is met. It still adds 1 to b every time it loops round, but would display only the numbers that divide exactly by 10.

User Avatar

Wiki User

12y ago

Still curious? Ask our experts.

Chat with our AI personalities

JordanJordan
Looking for a career mentor? I've seen my fair share of shake-ups.
Chat with Jordan
FranFran
I've made my fair share of mistakes, and if I can help you avoid a few, I'd sure like to try.
Chat with Fran
EzraEzra
Faith is not about having all the answers, but learning to ask the right questions.
Chat with Ezra

Add your answer:

Earn +20 pts
Q: What do you mean by conditional expression?
Write your answer...
Submit
Still have questions?
magnify glass
imp