Postfix conditional operator in F#

Viewed 585

In Perl language one can write something like

someFunction() if $x == 0

i.e. apply condition in postfix notation.

I was sure there must be similar type of expression in F#, since it is so flexible in working with functions. But when I try to write

someFunction() if x = 0

or

someFunction() << if x = 0

I recieve an expected error message. Is there any way to implement more or less general postfix conditional operator in F#?

1 Answers
Related