I would like the value (price) to be taken from the respective column according to how many participants.
Is there a guide for this?
Then I have a problem with the formatting of the numbers. Even if I specified 2 decimal places, I don’t get a rounded result. How can I solve this?
I already found the solution here. I added a round 
For displaying number on the page you can also use the formatNumber or formatCurrency, you can then round the number and also choose , instead of . for the decimal separator which is standard in most europe countries.
You can use a ternary expression to show different values depending on some value like rs.participants < 10 ? rs.price1 : rs.price2. This works fine if you don’t have to many choices. If you have many choices it would perhaps be better to have a custom formatter for it. You could also get it directly correct from the database with a custom query and using case expression (https://www.w3schools.com/sql/sql_case.asp).
Many thanks for your response.
The numbers are now formatted correctly! 
A simple if function is not my problem.
I need something like that, or rather something that works like this.
If $pax is < 20 echo $price1
If $pax is > 20 and < 30 echo $price2
If $pax is > 30 and < 40 echo$price3
If $pax is > 40 and < 50 echo$price4
If $pax is > 50 and < 60 echo$price5
If $pax is > 50 and < 60 echo$price6
If $pax is > 60 and < 70 echo $price7
If $pax is > 70 and < 80 echo $price8
If $pax is > 80 and < 90 echo$price9
If $pax is > 90 and < 100 echo$price10
If $pax is > 100 and < 150 echo $price11
else echo $price12
Unfortunately, I don’t have the programming skills to implement it
as long as I can’t find a solution here, we’ll do it manually 