MDL Variable Cheatsheet

Reference MDL syntax for variable declaration, scoping, and initialization.

1|Updated Jun 5, 2026
One-click install
npx skills add https://github.com/engalar/mxcli-taskdemo --skill mdl-variable-cheatsheet
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: MDL Variable Cheatsheet
Source: https://github.com/engalar/mxcli-taskdemo/tree/main/TaskDemo/.claude/skills/cheatsheet-variables
Command: npx skills add https://github.com/engalar/mxcli-taskdemo --skill mdl-variable-cheatsheet

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill resolves common syntax errors and confusion regarding variable declaration, scoping, and type initialization within Mendix Definition Language (MDL) microflows.

Core Features & Use Cases

  • Syntax Reference: Provides a clear lookup table for declaring primitives, entities, and lists in MDL.
  • Best Practices: Outlines critical rules for using the AS keyword for entities and the correct initialization of lists.
  • Use Case: When writing complex microflows, use this reference to verify the correct declaration syntax for a new entity variable or to troubleshoot a SET error caused by an undeclared variable.

Quick Start

Consult the MDL Variable Cheatsheet to verify the correct syntax for declaring a new list of customer entities in your current microflow.

Frequently Asked Questions about MDL Variable Cheatsheet

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I declare variables in Mendix Definition Language microflows?

Use the AS keyword when declaring entity variables in MDL to ensure strict typing compliance. This practice enforces correct type initialization and prevents scoping errors within your Mendix microflow logic.

What is the correct syntax for initializing a list of entities in MDL?

Use the AS keyword when declaring entity variables in MDL to ensure strict typing compliance. This practice enforces correct type initialization and prevents scoping errors within your Mendix microflow logic.

Why does my MDL microflow throw a SET error on an undeclared variable?

Use the AS keyword when declaring entity variables in MDL to ensure strict typing compliance. This practice enforces correct type initialization and prevents scoping errors within your Mendix microflow logic.

Does Mendix Definition Language support dynamic variable scoping in microflows?

Use the AS keyword when declaring entity variables in MDL to ensure strict typing compliance. This practice enforces correct type initialization and prevents scoping errors within your Mendix microflow logic.

What is the best way to troubleshoot syntax errors for domain model variables in MDL?

Use the AS keyword when declaring entity variables in MDL to ensure strict typing compliance. This practice enforces correct type initialization and prevents scoping errors within your Mendix microflow logic.