Complete beginner - trying to use if...else - but getting a compiler error.
Must be something very simple but I can't understand it....
Complete beginner - trying to use if...else - but getting a compiler error.
Must be something very simple but I can't understand it....
An if statement is NOT followed by a ; AND curly braces - one or the other (usually curly braces, not both.
Next time, post your code as text and your errors as text, not pictures.
quote author=PaulS link=msg=2315069 date=1436822848]
An if statement is NOT followed by a ; AND curly braces - one or the other (usually curly braces, not both.
Next time, post your code as text and your errors as text, not pictures.
[/quote]
Thanks - also I just spotted lcd.Print should be lcd.print....
As a beginner you should be learning and get used to correct terminology:
if (expression)
** statement;**
Good luck