Processing math: 100%

First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 4 years ago

Cyrille gravatar image

Boolean conditional function

I would like to construct a function with return the string "Vrai" or the string 'Faux' selon qu x>y ou x<=y. I have tried

cond(x, y)= if bool(x<y)='True' then Print("Accepté") else Print("Rejeté")

but it leads to an error