|
Post by dw817 on May 28, 2009 12:11:30 GMT -5
Suggestion for B4GL: * Sometimes you have big lines of comparisons, would be nice to see a feature where you can continue a line on the next line by using ";" so it doesn't scroll off the edge of the screen, thus: Could become: or, without the ";" : What do you think ?  
|
|
|
Post by DJLinux on May 28, 2009 13:02:44 GMT -5
it's more clever if you split long terms in shorter parts if inrange(x,0,255) and inrange(y,0,255) then if (pstall=1) or (not(x>=240 and y>=112 and y<=128) then end if end if if the first test failed you don't need to express the rest (it's faster too) Joshy
|
|
|
Post by dw817 on May 28, 2009 16:32:08 GMT -5
Hi DJLinux: * Hmm ! That's a good idea at that. I just didn't want a bunch of trailing ENDIF's, however, that's a nice solution so I'll split my busy IF statements to two lines that way; hate to have 2 ENDIFs for one statement but hate even more to scroll to read the rest of my coding for that statement. Thank you. 
|
|
|
Post by Pizzasgood on May 28, 2009 22:00:19 GMT -5
Doesn't B4GL do short-circuit-evaluation?
|
|
|
Post by DJLinux on May 29, 2009 4:16:08 GMT -5
Doesn't B4GL do short-circuit-evaluation? Only if you use LAND and LOR. (sorry if i'm wrong) Joshy
|
|
|
Post by Supermonkey on May 29, 2009 10:56:21 GMT -5
I believe that is correct  .
|
|