For the complete documentation index, see llms.txt. This page is also available as Markdown.

Writing outputs

set_val(id, value) overwrites the current working value:

main {
    if(get_ival(PS5_R2) > 10) {
        set_val(PS5_R2, 100);
    }
}

Last writer wins:

main {
    if(get_ival(PS5_R2)) set_val(PS5_R2, 100);
    if(menu_open) set_val(PS5_R2, 0); // menu owns final output
}

Document that ownership instead of relying on accidental order.

Last updated