Is there such a function in Delphi that will return the result of a comparison.
Example:
label.visible := evaluate(1 > 3);
I have searched but I don't know what that would be called.
There is no need for a Function you can just write
label.visible := 1 > 3;
since 1 > 3 is a boolean expression.
CompareValue function from Math unit, with which you'd write a code like this, but it's like cutting an apple with a chain saw.
1 > 3is a boolean operation, and the result of the comparison can be directly assigned to theVisibleproperty.Label1.Visible := 1 > 3;. This isn't an actual question, as it doesn't make sense; there's no function needed.