Method: Validate.Warn( … )

Use to set a validation warning and message in 1 line.
Will produce a warning in the $LOG if input parameter warn is true. The value of warn will also be returned by the method, making it easier to write more compact and easier to read code.

Syntax

bool Validate.Warn( bool warn, string warnMessage )

Example

Validate.Warn( !HasValue, "The input field does not have a value" ); // will add above message to the $LOG with more info on where in the input its missing