Recent Changes - Search:
Email iofreak@yahoo.com with comments and/or suggestions.

Aibo General

Aibo Development

Wiki Help

Aibo Links

R-Code » CSET

CSET Statement

CSET is a conditional Context value set command. If several contiguous CSETs appear, all CSETs after the first one that is evaluated as true are ignored. Combine with CASE statements to create multiple-branching conditions.

Models

ERS-210 ERS-220 ERS-31x ERS-7

Syntax

CSET:val1:op:val2:val3

The CSET statement syntax has the following parts:

PartDescription
val1Variable or constant.
opA valid boolean operator (=, ==, <>, !=, <, <=, >, >=, &, |, ^, &&, ||).
val2Variable or constant.
val3Variable or constant.

Example(s)


   CSET:x:<:10:1
   CSET:x:<:20:2
   CSET:x:<:30:3
   CSET:x:<:40:4
   CSET:x:<:50:5
   CASE:1:PRINT:"x < 10"
   CASE:2:PRINT:"x < 20"
   CASE:3:PRINT:"x < 30"
   CASE:4:PRINT:"x < 40"
   CASE:5:PRINT:"x < 50"
 

Edit - History - Print - Recent Changes - Search - Site Terms of Use
Page last modified on September 01, 2006, at 03:04 PM CST