Next: Variables within the Up: Variables Previous: Working with Variables

### Examples

Please read through the following 3 examples for the use of variables:

1. Example (number variable): If the number variable LENGTH=200 is defined within SISCAD-P, the command

   > CREATE LINE PA PNT=100,100;ANG=45;LEN=LENGTH!

   leads to the result that a line is created under an angle of 45 degrees, with a length of 200 starting from a point 100,100.
   If constructional relations have not been saved, any modification of the content of the variables does not have any effects on the geometry. If, however, constructional relations have been saved, a subsequent modification of the content of the variable LENGTH causes the modification of the length of the constructed line.

2. Example (text variable): If the system knows the text variable INFO=

   > "STAEDTLER - innovative solutions"

   the command

   > CREATE TEXT L PNT=100,50;TXT=INFO!

   creates a left-justified text at the given position with the given text. A modification of the content of the variable causes the whole text to be changed.

3. Example (co-ordinate variable): If the co-ordinate variable VERTEX=100,50 exists within SISCAD-P, a point is created at the given position with the help of the command

   > CREATE POINT CAR PNT=VERTEX!

   Any modification of the variable, with saved constructional relations, will cause the point to be positioned anew.