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

SteveSteve
Knowledge is a journey, you know? We'll get there.
Chat with Steve
BeauBeau
You're doing better than you think!
Chat with Beau
LaoLao
The path is yours to walk; I am only here to hold up a mirror.
Chat with Lao

Add your answer:

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