This document provides a comprehensive reference for all available Handlebars helper functions in the WyvernChat platform. These functions can be used in templates for character descriptions, prompts, and other dynamic content.
if
Syntax: {{#if value}}...{{/if}}
Arguments: value
(any) - Value to test for truthiness
Data Manipulation: Executes block content if value is truthy
Description: Standard conditional block that checks for JavaScript truthiness (excludes 0, '', null, undefined, false)
unless
Syntax: {{#unless value}}...{{/unless}}
Arguments: value
(any) - Value to test for falsiness
Data Manipulation: Executes block content if value is falsy
Description: Inverse of if
- executes when value is falsy
compare
Syntax: {{#compare arg1 arg2 operator="=="}}...{{/compare}}
Arguments:
arg1
(any) - First value to comparearg2
(any) - Second value to compare