Conditionals
Like many programming languages, Soulver supports conditionals, (sometimes called "if statements").
earnings = $45k | $45,000.00
if earnings > $30k then tax = 20% else tax = 5% | 20%
My tax paid: earnings × tax | $9,000.00income = $35k
expenses = $21.5k
profitable = true if income > expenses | true
insolvent = false unless expenses > income | falseBMI = 24
Underweight = BMI < 18.5 | false
Healthy Weight = BMI >= 18.5 and BMI < 25 | true
Overweight = BMI >= 25 and BMI < 30 | false
Obese = BMI >= 30 | falseComparison operators & booleans
Last updated