>Hello,
>I am about to write an ugly IF statement with 23 conditions. What is the best syntax to do this so I don't have one huge IF line. I would like it to be readable without having to scroll a mile to the right.
>
>
>IF CONDITION1 = RESULT1 AND CONDITION2 = RESULT2 AND CONDITION3 = RESULT3...
> lcReturn = .T.
>Else
> lcReturn = .F.
>ENDIF
>
Personaly I prefer this:
lcReturn = CONDITION1 = RESULT1 AND;
CONDITION2 = RESULT2 AND;
CONDITION3 = RESULT3 AND;
....
lcReturn? Isn't it l
bReturn?
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.