Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Small TAGZ Q. (Read 2082 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Small TAGZ Q.

Something I can't figure out how to do with TAGZ, and since so many of you are so much much more clever than me I'm asking here:

I want to have a string that returns X if X is an integral number in the range of 1-99, but returns nil if X are 0 (or less) or 100 (or more).

Thanks! 
"ONLY THOSE WHO ATTEMPT THE IMPOSSIBLE WILL ACHIEVE THE ABSURD"
        - Oceania Association of Autonomous Astronauts

Small TAGZ Q.

Reply #1
$ifgreater(x,0,$puts(y,x),$puts(y,0))
$ifgreater(x,99,$puts(y,0),)
$get(y)

There must be a more elegant way to do that.

I forgot that and had to edit: "returns nil if X are 0 (or less)"


Small TAGZ Q.

Reply #3
Damn, i almost came to the conclusion of foosion - but was stuck right before the finishing-line.

- Lyx
I am arrogant and I can afford it because I deliver.