-
Notifications
You must be signed in to change notification settings - Fork 0
Boolean values
Leon Starr edited this page Nov 6, 2023
·
4 revisions
The values TRUE and FALSE are keywords in Scrall. That said, most of the cases where you might use them have been eliminated. That’s because you can use the set and unset operations defined on the Boolean type.
Let’s say we have a boolean Shuffle attribute in a music application which either does or does not shuffle the play order in a song list.
song list.Shuffle.set() // now its value is TRUE
song list.Shuffle.unset() // now its value is FALSE
(song list.Shuffle) ? ... // You don't need a literal to test the value
But, if you want, you can do this:
song list.Shuffle = TRUE
(song list.Shuffle == TRUE)? ...
There are situations where you will need the boolean value keywords such as:
=>> TRUE // output TRUE
Copyright 2020, 2021, 2022, 2023, 2025 © Leon Starr under MIT Open Source License
- Why they are problematic
- Instance attribute creation values
- Boolean values
- Special values
- Enumerated values
- Action block
- Statement
- Single line action
- Multiple dependent actions on a single line
- An action spread across multiple lines
- A conditional group of single line actions
- Comments
- Finding instances
- Attribute access
- Creation and deletion
- Subclass migration
- Creating a table from a class
- Creating a table with a definition
- Converting a table into a class
- Set operations on tables
- Set comparisons on tables
- Join
- Rename
- Extend
- Aggregation
- Rank
- Image
- Input values
- Signatures and name doubling
- Output values
- Execution order
- Sequential execution
- Conditional execution
- Signals
- Scrall has no for_each action
- Iteration