(Lispex)

A programming language for your application's decision rules.

Write refund or eligibility rules, then run them from your app to get an answer.

Check whether a refund request is on time.

This rule accepts requests made less than 15 days after purchase. Try it with a purchase from 14 days ago.

LISPEX
(define days 14)
(if (< days 15)
    "within-window"
    "outside-window")
Result"within-window"

The request is within the refund window.

What the code means

(define days 14)
Give the name days to the number 14, the days since purchase.
(< days 15)
Check whether days is less than 15.
if
Use if to choose the first answer when the condition is true, or the second when it is false.

Change 14 to 15 to get "outside-window", meaning the request is too late.

Run this example

Put your rules to work.

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 application

Check a recorded decision

With 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 Vouch

Share source code as an image

Save 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 images

Write a rule for your own app.

Go from your first program to a refund rule in six lessons, then connect it to your application.