mirror of
https://github.com/hanzoai/numscript.git
synced 2026-10-30 18:26:57 +00:00
* feat: feature flag syntax * feat: change syntax * feat: reject invalid features * feat: add static check of unknown features * feat: more defensive args handling * fix: fix typo
16 lines
334 B
Plaintext
16 lines
334 B
Plaintext
vars {
|
|
number $amt
|
|
monetary $invoice_001_overdraft = overdraft(@invoice:001, USD/2)
|
|
monetary $invoice_002_overdraft = overdraft(@invoice:002, USD/2)
|
|
}
|
|
|
|
|
|
send [USD/2 $amt] (
|
|
source = @world
|
|
destination = {
|
|
max $invoice_001_overdraft to @invoice:001
|
|
max $invoice_002_overdraft to @invoice:002
|
|
remaining kept
|
|
}
|
|
)
|