Run them where you need them
Try code locally in your browser with the Playground. Use the npm package in Node.js or the Native command-line program on your computer.
Run Lispex in your applicationA programming language for your application's decision rules.
Write refund or eligibility rules, then run them from your app to get an answer.
This rule accepts requests made less than 15 days after purchase. Try it with a purchase from 14 days ago.
(define days 14)
(if (< days 15)
"within-window"
"outside-window")"within-window"The request is within the refund window.
(define days 14)(< days 15)ifChange 14 to 15 to get "outside-window", meaning the request is too late.
Run this exampleTry code locally in your browser with the Playground. Use the npm package in Node.js or the Native command-line program on your computer.
Run Lispex in your applicationWith Lispex Vouch, Native signs a record of the rule, input, and answer. Recipients choose a trusted public key to check the signature. They can rerun their own rule with their own input and compare the answer with the record. The calling application authorizes the actual refund.
Use Lispex VouchSave your source in a Lispex image and recover the original text, including comments and spacing. Keep the PNG file or ordered set of image pages intact. Decode it on your computer or in the Playground, then read and run the code.
Create and read Lispex imagesGo from your first program to a refund rule in six lessons, then connect it to your application.