Soldato
- Joined
- 6 Jun 2011
- Posts
- 2,741
Hey guys,
I am currently creating a program using processing. However I am having a real problem with if statements. I have lots of different if statements which take up a lot of lines of code. I have tried putting them into a function using local variables, but the result of these if statements is to change a global variable and I cannot make it work. Here is the kind of thing I am talking about:
Any ideas? Any help appreciated.
Thanks
I am currently creating a program using processing. However I am having a real problem with if statements. I have lots of different if statements which take up a lot of lines of code. I have tried putting them into a function using local variables, but the result of these if statements is to change a global variable and I cannot make it work. Here is the kind of thing I am talking about:
Any ideas? Any help appreciated.
Thanks

Last edited: