StigOfTheDump
Senior Member
Why does endif get underlined with a red wavy line in PE6? I can change the color of it in the settings, which identifies it as a KeywordError.
It doesn't seem to matter whether it is on the same line as the if statement separated with a colon or without, or on it's own line. If I remove it I get IF without ENDIF error.
It doesn't show up in code posted to the forum but both the endif statements are underlined. Also the Auto-format tools that I use to correct my inconsistent typing don't show up in the forum.
It doesn't seem to matter whether it is on the same line as the if statement separated with a colon or without, or on it's own line. If I remove it I get IF without ENDIF error.
It doesn't show up in code posted to the forum but both the endif statements are underlined. Also the Auto-format tools that I use to correct my inconsistent typing don't show up in the forum.
Code:
[color=Black]SetPause:[/color]
[color=Blue]if [/color][color=Orange]Remote [/color][color=Black]= [/color][color=Red]"A" [/color][color=Blue]then let [/color][color=Purple]b25 [/color][color=Black]= [/color][color=Purple]b25 [/color][color=Black]+ [/color][color=CadetBlue]1[/color]
[color=Blue]pause [/color][color=CadetBlue]1000[/color]
[color=Blue]Serout [/color][color=Purple]c.4[/color][color=Black], [/color][color=Purple]N2400_16[/color][color=Black],[/color][color=Blue]([/color][color=CadetBlue]254[/color][color=Black],[/color][color=CadetBlue]128[/color][color=Black],#[/color][color=Purple]b25[/color][color=Black],[/color][color=Red]" "[/color][color=Blue])
Endif
if [/color][color=Orange]Remote [/color][color=Black]= [/color][color=Red]"D" [/color][color=Blue]then let [/color][color=Purple]b25 [/color][color=Black]= [/color][color=Purple]b25 [/color][color=Black]- [/color][color=CadetBlue]1[/color]
[color=Blue]pause [/color][color=CadetBlue]1000[/color]
[color=Blue]Serout [/color][color=Purple]c.4[/color][color=Black], [/color][color=Purple]N2400_16[/color][color=Black],[/color][color=Blue]([/color][color=CadetBlue]254[/color][color=Black],[/color][color=CadetBlue]128[/color][color=Black],#[/color][color=Purple]b25[/color][color=Black],[/color][color=Red]" "[/color][color=Blue])
Endif
return[/color]