Ah, what I posted should compile in C or PBP, and in both languages inner brackets should evaluate first, and in order toward outer brackets.

PBP
Code:
if (battery=charged) && (lightbulb != blown) then ‘ AND
bulb will light
endif
C
Code:
if (battery=charged) && (lightbulb != blown) { ‘ AND
bulb will light
}




Quote Originally Posted by camerart View Post
Hi Art,

As I've been monolingual with basic since the early 80s, your reply is another puzzle, but thanks. I'll stick to IF/THEN.

C.