docs: rearranged expr_lang.md path
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
- [Configuration](config/configuration.md)
|
||||
- [Fundamentals](config/config_fundamentals.md)
|
||||
- [Variables](config/variables.md)
|
||||
- [Expression Language](expression_language.md)
|
||||
- [Expression Language](config/expression_language.md)
|
||||
<!-- - [Magic Variables](magic-vars.md) -->
|
||||
|
||||
- [Theming & UI](theming/theming_and_ui.md)
|
||||
|
||||
@@ -70,13 +70,13 @@ Examples include:
|
||||
|
||||
Because expressions are just Rhai, you can now write real logic inline or break it into reusable functions:
|
||||
|
||||
```rhai
|
||||
```rust,ignore
|
||||
fn status_text(active) {
|
||||
return active ? "enabled" : "disabled";
|
||||
}
|
||||
|
||||
label({
|
||||
text: "Status: ${status_text(system_active)}"
|
||||
text: `Status: ${status_text(system_active)}`
|
||||
});
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user