Salary structure condition

how to give conditon or formula for the following data:
if the employee have 1 children means he should get 3000 for education
if the employee have 2 children means he should get 6000 for education

condition: no_of_children==1
amoount: 3000
condition: no_of_children==2
amount: 6000
how can i make codition in salary structure

Try to type this in formula with empty condition
3000 if no_of_children==1 else 6000 if no_of_children==2 else 9000 if no_of_children==3 else 10000

Hope that helps