Shop OBEX P1 Docs P2 Docs Learn Events
Propeller Manual, I cannot get past page 118. — Parallax Forums

Propeller Manual, I cannot get past page 118.

jpylejpyle Posts: 41
edited 2009-11-02 05:52 in Propeller 1
Hello, I am attempting to work my way through the manual by doing all of the examples. All has gone well
until·I got to page 118. It had the student modify code that has been built up from very basic LED
blinking. There is a modification that I have checked over on page 118·, for mistakes on my end, ten times now with no sucess. There is a portion of the code that deals with using " YesNo " in a line after a "PUB Active "·The
YesNo"·statement. Looks like this:
·
Pub Active: YesNo
{{Return True if process is active, FALSE otherwise }}

· YesNo := Cog > 0

The Compiler stops on the " YesNo := Cog > 0 " line and, and tells me that it ·" Expected an Instruction or Variable" and will go no further. Being new to the coding, and·I must be fiarly dense ,·I have tried all I know to get through this situation. Any help would be much appricated.· ( I am going to do a search for page 118 problems now)··· Thanks, John· (Right now I am going to bed, maybe better results after I get some sleep)

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2009-11-02 05:38
    There's nothing wrong with
    Pub Active: YesNo
    {{Return True if process is active, FALSE otherwise }}
     
      YesNo := Cog > 0
    



    as long as you have "Cog" defined. Are you sure you entered the program correctly as shown on page 118?
  • jpylejpyle Posts: 41
    edited 2009-11-02 05:52
    Thanks, Mike. I am going to go over it with a fine tooh comb in the morning, as·I·am sure·it has to be on my end somewhere. I will repost if I·still seem to have a problem. I have been very carefull to watch the indenting. Again , thanks. I will start with rested eyes and find my mistake. Thanks, Again··· John
Sign In or Register to comment.