The ?-:-Operater is not realized in C/AL.
If it is possible to condition the result of a assignment like Belias posted then this is a short way otherwise you have no other chance than to code an IF-statement
The ?-:-Operater is not realized in C/AL.
If it is possible to condition the result of a assignment like Belias posted then this is a short way otherwise you have no other chance than to code an IF-statement
I think you meant:
IF it is possible to condition the result of a assignment like Belias posted THEN
this is a short way
ELSE
you have no other chance than to code an IF-statement;
Inline conditional wold be very usefull for reports design...
for instance in TextBox.SourceExpr , instead:
( ABS("Credit Amount")>0 ? "G/L Account No." : '' )
i have to create prosthesis like this:
COPYSTR("G/L Account No.",1,20*(STRLEN(FORMAT(ABS("Credit Amount")))-1))
("Credit Amount" appear number or empty)
IF-statement in SourceExpr is not accepted.
Comments
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
If it is possible to condition the result of a assignment like Belias posted then this is a short way otherwise you have no other chance than to code an IF-statement
RIS Plus, LLC
Sorry just feeling a little silly just now.
http://www.interdynbmi.com
RIS Plus, LLC
Inline conditional wold be very usefull for reports design...
for instance in TextBox.SourceExpr , instead:
( ABS("Credit Amount")>0 ? "G/L Account No." : '' )
i have to create prosthesis like this:
COPYSTR("G/L Account No.",1,20*(STRLEN(FORMAT(ABS("Credit Amount")))-1))
("Credit Amount" appear number or empty)
IF-statement in SourceExpr is not accepted.
Any better ideas for conditional in SourceExpr ??
Always you should do what will be best in the long term for the customer.