﻿ <<*Set*>> Prompt
Pathagoras Help System

<<*Set*>> Prompt

 <<*Set*>> Prompt <<*Set*>> Prompt

Sometimes you just want to set a value in an Ask table. To do so, use the <<*Set*>> prompt.

Examples:

To set a value for

Optional: <<*Set*!Married!="True">>

Options (single choice): <<*Set*!Spouse!="2(2)">> (where the first number reflects the selected position of the choice, and the number in parentheses represents the total number of choices

Options (multiple choices): <<*Set*!Spouse!="1,3,5(9)">> (where the first numbers, separated by commas, reflect the selected positions of the choices, and the number in parentheses represents the total number of choices

Numeric: <<*Set*!NumCdn!="5(#)">>(where the first number reflects the number or repeat value, and the pound sign/hash mark tells Pathagoras that an actual number, as opposed to position, is intended.

Set Math:

You can compare and add (and soon subtract) existing values to arrive at a Set.

E.g.,

<<*Set*!NumDogs!=3(#)*>>

<<*Set*!NumCritters!=!NumDogs!+!NumCats!>>