Don't what people think to this idea? It would be nice if PB could do the equivalent to C#'s ternary operator.
C#
Code: Select all
int indent = HasDataLabelSet() ? 4 : 2;
Code: Select all
Indent = If HasDataLabelSet() = #True : 4 : Else 2 : EndIf
Code: Select all
int indent = HasDataLabelSet() ? 4 : 2;
Code: Select all
Indent = If HasDataLabelSet() = #True : 4 : Else 2 : EndIf