Sketchware Docs (Unofficial)
  • Introduction (Under Construction)
  • Official Docs
  • Introduction to Sketchware
    • Adding your app
    • Designing and Programming your app
  • Widgets and Layouts
    • Concept
    • Properties
    • List of Widgets and Layouts
  • Events
  • Blocks
    • Variable
    • List
    • Control
    • Operator
    • Math
    • File
    • View
    • Component
    • More Block
  • Components
    • About Components
    • Intent
    • SharedPreference
    • Calendar
    • Vibrator
    • Timer
    • Dialog
  • Configuration
  • AdMob Guide
  • Community
Powered by GitBook
On this page

Was this helpful?

  1. Blocks

Operator

Usually used with blocks from the Contol tab.

PreviousControlNextMath

Last updated 3 years ago

Was this helpful?

This page in not finished

True

True condition

False

False condition

< (less than)

Used to check if one value is less than the other.

= (equals)

Used to check if two values are equal.

> (greater than)

Used to check if one value is greater than the other.

And

Joins two condition blocks.

Or

Joins two condition blocks, but they function separately.

Not

Changes the condition checked to false instead of the default which is true.

+ (add)

Used to add two numbers.

- (subtract)

Used to subtract two numbers

* (multiply)

Used to multiply two numbers.

/ (divide)

Used to divide two numbers.

% (percent)

Pick Random

Pick a random number between two specified numbers.

Length of

Gets the length of a string (text).

Join

Combines two vales and puts them right next to each other.

Index

Needs description

Last index

Needs image

Needs description

Substring

Needs description

Equals

Condition used to check if two strings are equal.

Usually used with SharedPreferences.

Contains

Replace all

Replaces all the specified value with the specified value for the specified string.

Trim

Removes any space characters around the specified string.

ToUpperCase

Makes the specified string uppercase.

ToLowerCase

Makes the specified string lowercase.

toNumber

Converts a string into a number.

true
false
Less than
Plus
Minus
times
divided by
percent of
pick random _ to _
Length of
Join _ and _
Index _ of _
_ substring _ to _
_ equals _
contains
_ replace all _ with _
trim
toUpperCase _
toLowerCase _
toNumber _