i am trying to use an if statement which will say some thing if points is greater than or equal to 15 AND less than 20. like this:

if points >= 15 and < 20 then writeln('Nice!');

but this code doesnt work. how would i do it?

Recommended Answers

All 3 Replies

I have an idea:

If (Points >= 15) And (Points < 20) Then WriteLn('Nice!');

I hope that you know that this gives true value back if both of condition are true...and the answer was good then click 'Solved'..

commented: helped with a conditional problem +1

thanks! it worked :D

thanks! it worked :D

You'd click that "Solved",not?????

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.