Skip to content

User‐Friendly‐Language Documentation

Fitsneezy543 edited this page Aug 18, 2024 · 1 revision

Betarun-ezgif com-resize (2)

UFL Documentation

General Information

UFL (User-Friendly-Language) is designed to be an easy-to-use programming language with a focus on simplicity and accessibility. It allows users to create scripts with minimal complexity and straightforward syntax.

Basic Syntax

Keywords

let - Used to declare variables.

say - Outputs text to the user.

ifthis - Used for conditional statements.

orelse - Defines the alternative condition in an ifthis statement.

foreverloop - Creates an infinite loop.

Comments

Single-line comments: Begin with //. Example:

// This is a comment \

Multi-line comments: Enclosed between// | and \. Example: // This | is a multi-line comment \

Operators

  • = - Assignment

  • + - Addition

  • - - Subtraction

  • * - Multiplication

  • / - Division

Delimiters

  • Open: //

  • Escape: \\

  • Close: \\

Functions

UI Functions

  • initializeWindow() - Initializes the UI window for the script.

  • setTheme() - Sets the theme for the UI.

Button Function

  • button([text]) - Creates a button with the specified text.

Example Script

Here is an example script for a simple calculator in UFL:

initializeWindow()

setTheme("Default")

say("Click buttons to perform operations.")

// Simple Calculator Example

| Enter numbers and click operations: |

button("7")

button("8")

button("9")

button("/")

button("4")

button("5")

button("6")

button("*")

button("1")

button("2")

button("3")

button("-")

button("0")

button(".")

button("=")

button("+") (See next page for UFL Studio Docs)