Skip to main content
Glama
assert.md497 B
# Assert ## `assert` Ensures that a condition is fulfilled. Fails with an error if the condition is not fulfilled. Does not produce any output in the document. If you wish to test equality between two values, see [`assert.eq`]($assert.eq) and [`assert.ne`]($assert.ne). # Example ```typ #assert(1 < 2, message: "math broke") ``` ## Parameters ### condition *(required)* The condition that must be true for the assertion to pass. ### message The error message when the assertion fails.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/FujishigeTemma/typst-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server