Fuze Arena Logo
  • Forum
  • Creations
    Catalogue Showcase
  • Help

greaterThan

Purpose

Greater than operator >

Description

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

Syntax

result = expression1 > expression2

Arguments

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

expression1 first expression

expression2 second expression

Example

gsize = 64
landScape = createTerrain( gsize, 1 )
height = 0
colour = white
for x = 0 to gsize loop
    for y = 0 to gsize loop
        d = distance ( { x, y }, { gsize / 2, gsize / 2 } )
        if d > 24 then    // sea level
            height = 0
            colour = blue
        else
            if (d > 18) then  // beach
                height = 1
                colour = yellow
            else                  // hills
                height = rnd(2) + 1
                colour = green
            endIf
        endIf
        setTerrainPoint( landscape, x, y, height, colour )
    repeat
repeat

setCamera( { gsize / 2, 50, gsize / 2 }, { gsize / 2, 0, gsize / 2 - 1 } )
setAmbientLight( { 0.5, 0.5, 0.5 } )
island = placeObject( landscape, { gsize / 2, 0, gsize / 2 }, { 1, 1, 1 } )

loop
    c = controls( 0 ) // rotate using joysticks
    rotateObject( island, { 1, 0, 0 }, c.ly )
    rotateObject( island, { 0, 0, 1 }, c.lx )
    rotateObject( island, { 0, 1, 0 }, c.rx )
    drawObjects()
    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.