Input
Description
Syntax
input px-width px-height "input_id" "default_text" border_weight text_colourParameters
Usage
// Basic input field
input 300 20 "username" "Enter username" 2 #fff
log input_username
// Logs whatever the user has typed in the input
// Password input field (v4.6.4+)
input 300 20 "hidden.password" "Enter password" 2 #fff
log input_password
// Note: "hidden." prefix makes the input mask characters, but
// you still access the value without the "hidden." prefix
// Styling example
input 400 30 "search" "Search..." 5 #00ff00
// Wide input with thick border and green text
// Using input in conditions
input 200 25 "age" "Enter your age" 1 #fff
if input_age == "18" (
log "You're 18!"
)
// Multiple inputs
input 300 20 "firstname" "First name" 2 #fff
input 300 20 "lastname" "Last name" 2 #fff
log input_firstname ++ " " ++ input_lastname
// Combines first and last name inputsImportant Notes
Last updated