Setting if else condition

Hey guys,
In setting a salary component.
How do I set the condition of
value = 200000

if value <= 500000
0.9 * value
else
0.9 * 500000

for a component.

@Anthony_Odigie

0.9 * (base if base <= 500000 else 500000)

Thanks for your speedy reply.

and A big thanks cuz it works!!