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.
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.
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
CCode:if (battery=charged) && (lightbulb != blown) then ‘ AND bulb will light endif
Code:if (battery=charged) && (lightbulb != blown) { ‘ AND bulb will light }
not really in C (battery=charged) is not a comparison it's an assignment ,while the statement will compile in C the results will be incorrectAh, what I posted should compile in C or PBP, and in both languages inner brackets should evaluate first, and in order toward outer brackets.
C
if (battery=charged) && (lightbulb != blown) { ‘ AND bulb will light }
(battery==charged) is a comparison statement in C
Bookmarks