Computer Science Canada security system program |
Author: | amir20001 [ Fri May 16, 2008 8:26 pm ] | ||
Post subject: | security system program | ||
i have started on this but i don't fully understand how the parallelget function works here is what i have so far any help would be appreciated
|
Author: | syntax_error [ Fri May 16, 2008 11:41 pm ] | ||
Post subject: | Re: security system program | ||
amir20001 wrote:
I am not sure about your parallelget issue but not 100% sure but I think you should have end if after each if statement |
Author: | gitoxa [ Fri May 16, 2008 11:57 pm ] |
Post subject: | RE:security system program |
if val1 = 1 then as opposed to if val1 := 1 then |
Author: | Nick [ Sat May 17, 2008 12:01 am ] |
Post subject: | RE:security system program |
err... why are you declaring variables in an if statement, does that even run? EDIT: also the program will never leave the loop reaching the bottom statements |
Author: | Sean [ Sat May 17, 2008 9:10 am ] | ||
Post subject: | Re: security system program | ||
Also, change your if statements. You don't need to use new if statments all the time, you can continue an if statment by adding elsif to it. Like so:
|
Author: | Nick [ Sat May 17, 2008 10:01 am ] |
Post subject: | RE:security system program |
also use arrays, that if statement can be a single for loop + if |
Author: | amir20001 [ Sat May 17, 2008 11:21 am ] |
Post subject: | Re: RE:security system program |
nick @ Sat May 17, 2008 12:01 am wrote: err... why are you declaring variables in an if statement, does that even run?
EDIT: also the program will never leave the loop reaching the bottom statements i didn't know u couldn't do that, and it dose not run thx for ur help |
Author: | amir20001 [ Sat May 17, 2008 11:27 am ] |
Post subject: | Re: security system program |
thx a lot every one i got it working |