Lemma - Highlight.js Example

doc pricing

fact quantity = [number]
fact is_member = [boolean]
fact base_price = 100

rule discount = 0%
  unless quantity >= 10 then 10%
  unless quantity >= 50 then 20%
  unless is_member then 15%

rule price = base_price - discount?
doc employee_contract

fact salary = 5000 eur
fact start_date = 2024-01-15
fact vacation_days = 25

rule annual_salary = salary * 12
rule daily_rate = salary / 21
rule can_take_vacation = vacation_days? > 0