---
title: Rules
description: "Rules are the central configuration object in ifServ. Rules consist of one or more [Solutions](https://ifserv.com/docs/solutions/), Solutions are the thing which produce a result based on the input facts. Solutions consist of - An optional Condition - the condition evaluates facts…"
url: "https://ifserv.com/docs/rules/"
updated: "2025-04-08"
---

# Rules

Rules are the central configuration object in ifServ. Rules consist of one or more [Solutions](https://ifserv.com/docs/solutions/), Solutions are the thing which produce a result based on the input facts.

Solutions consist of

- An optional Condition - the condition evaluates facts and determines if the rule executes or not. If there is no condition, the rule will execute.
- Solution Result - the solution result is either a static JSON object, or dynamic javascript. A javascript solution result has full access to the input facts and can even call other rules and use the results from them
