Fuze Arena Logo
  • Forum
  • Creations
    Catalogue Showcase
  • Help

lessThan

Purpose

Less than operator <

Description

This is true if the value of first expression is less than the value of the second

Syntax

result = expression1 < expression2

Arguments

result true if value of expression1 is less than value of expression2

expression1 first expression

expression2 second expression

Example

hour="00"
minute="00"
second="00"
size=100.0
textsize(size)
loop
    clear()
    c = clock()
    if c.hour < 10 then
        hour= "0" + str( c.hour )
    else
        hour= str(c.hour)
    endIf
    if c.minute < 10 then
        minute = "0" + str( c.minute )
    else
        minute=str( c.minute )
    endIf
    if (c.second < 10) then
        second = "0" + str( c.second )
    else
        second = str( c.second )
    endIf
    now = hour + ":" + minute + ":" + second
    tw = textWidth( now )
    drawText( (gWidth() - tw) / 2, ( gHeight() - size ) / 2, size, white, now )
    update()
repeat

Associated Commands

equals, lessThan, greaterThan, lessThanEquals, greaterThanEquals, notEquals

logo

©2019 FUZE Technologies Ltd. FUZE is a registered trademark of FUZE Technologies Ltd. All rights reserved.

Useful links

  • Fuze Main Site
  • Fuze Arena on Twitter
  • Fuze Arena on Youtube
  • Download Buyer

Contact Information

  • FUZE Technologies Ltd
    15 Clearfields Farm
    Wotton Underwood
    Aylesbury, Buckinghamshire
    ​England, HP18 0RS

  • +44 (0) 1844 239 432

  • contact@fuze.co.uk

© Copyright FUZE Technologies Ltd. All rights reserved.