Skip to content

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

Introduction

Model semantics

Flows (as Variables)

Constants and literals

Structure of an activity

Accessing the class model

Data flow


Grammar and parsing notes

Components

Clone this wiki locally