Hello Everyone !
please, will it not be possible to simplify the code of this application?
It seems really long. I'm sure there is a faster way to shorten it ...
Thank you for helping me !
Simplify a source code filled with overlays of "if"
-
Gillesbop
- Posts: 23
- Joined: August 11th, 2016, 3:22 am
Simplify a source code filled with overlays of "if"
You do not have the required permissions to view the files attached to this post.
-
josh
- Posts: 2403
- Joined: May 5th, 2014, 12:49 pm
- Location: Washington DC
Re: Simplify a source code filled with overlays of "if"
I would normally use a lookup file for a case like this. Check out chapter 6 of the workshop materials: http://www.csprousers.org/resources/CSP ... rkshop.pdf There is a section on dynamic value set from a lookup file. You can download the working example here: http://www.csprousers.org/resources/CSP ... erials.zip. There is more complicated example with multiple levels of geography at this post: http://www.csprousers.org/forum/viewtop ... 625&p=8678