Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

integer

Scroll pagebreak

Examples

Code Block
languagetext
// Get the current editing tool, and cycle to the next one.

...


int $tool, $next;

...


 

...

// Get the current one.

...


$tool = `getEditTool`;

...


 

...

// Figure out the next one. 

...

$next = $tool + 1;

...


if( $next > 4 )

...


{ 

...

    $next = 0;

...


}

...


setEditTool $next;

Additional information

Related commands

...