WatchNon-threaded

Forums » Advanced Editor Forum » Read Message

Talk about it. Ask for help on it. Compliment it.

Variables n' descriptions

4 years ago

If I want to show variables as descriptions instead of a number, how do I do it?

e.g. if I.Q. is less than 75 show "dumb"

if I.Q. is between 75 and 125 show "moderate"

if I.Q. Is above 125 show "smart"

Variables n' descriptions

4 years ago

Make a variable called %IQ

Put this in the global script:

IF %IQ < 75 THEN

BEGIN

$PAGETEXT := "Dumb"

END

 

IF %IQ > 75 THEN

IF %IQ < 125 THEN

BEGIN

$PAGETEXT := "Moderate"

END

 

IF %IQ > 125 THEN

BEGIN

$PAGETEXT := "Smart"

END

 

You can also use Berzerka's on page variable tricks to turn the variables straight into text, but that's more complicated.

 

Variables n' descriptions

4 years ago
No, it's not. %%IQ%<=%75%dumb%%%%IQ%>75%moderate%%%%IQ%>125%smart%%