NattyFido 0 Posted April 16, 2009 Report Share Posted April 16, 2009 I was very surprised to find that my first program with SourceBoost Basic compiled and ran with no problems, well done on making it very intuitive. Now I am trying something a little more complex and I am stuck. sub control_temp( temp1 as word, temp2 as word, t1 as word, t2 as word, t3 as word, t4 as word ) if temp1 >= t1 then portc.6 = 1 if temp1 <= t2 then portc.6 = 0 if temp1 <= t3 then portc.7 = 1 if temp1 >= t4 then portc.7 = 0 end sub None of these IF statements will compile! I have tried putting the comparison (temp1 >= t1) in brackets but still no luck. Quote Link to post Share on other sites
Reynard 0 Posted April 16, 2009 Report Share Posted April 16, 2009 Don't forget to close your "If" statements with "End If". Cheers Reynard Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.