Low-code library
Let your users write the rules.
Gybe LogicBuilder is a library for building low-code functionality into your apps: your users define any logic in a guided editor, and your server evaluates it whenever it needs to.
How it works
You set the boundaries. Your users write the logic.
-
01
You define the variables
Pass the editor the variables your users may work with, and the type of result you expect — a boolean for a condition, a number for a premium.
-
02
Your users build the logic
Step by step: pick a variable, chain functions such as multiply, round or max, and nest expressions where they need them. Or edit it as text.
-
03
Your server evaluates it
Store the logic with your data and evaluate it on the server with the same variables whenever you need the result — on save, in a workflow or in a scheduled job.
Extendable
Teach it the language of your domain.
LogicBuilder comes with a standard set of operations. Add your own functions, variables and lookups, and your users find them in the same editor, next to the built-in ones.
Custom functions
Register functions from your domain — a tax rate, working days between two dates — and use them like any built-in operation.
additionalFunctionsYour variables
Pass the variables each screen needs, from system values to the fields of the record your user is editing.
additionalVariablesLookups
Connect lookups to your reference data, so users choose a tariff or a product from a list instead of typing a code.
additionalLookupsExpected types
Say what the logic must return — a boolean, a number — and the editor guides your users to a result of that type.
expectedReturnTypeAI-assisted
Describe the rule. AI drafts the logic.
LogicBuilder generates context from your app — the variables, their types and the available functions — so an AI model can write the logic from a plain-language request.
The result lands in the same editor, where your users review and adjust it before it is saved.
Request
The fire premium is the sum insured times the final rate and the building factor (1 if it’s missing), rounded to two decimals, but never below the minimum premium.
Generated logic
In reviewFor developers
A few lines on each side.
Embed the editor in your React app, then evaluate the same logic in .NET with the same variables.
<LogicBuilder
logic={condition}
onLogicChanged={setCondition}
expectedReturnType={booleanType()}
additionalVariables={variables}
additionalFunctions={customFunctions}
additionalLookups={lookups}
/>var variables = new Dictionary<string, object?>(inputParameters);
// Evaluate the user-defined condition on the server
var eligible = await logicEvaluator.Evaluate(condition, variables);