QTIPS - Direct Assignment by Comparison

Published ByDateVersionKnowledge LevelKeywords
Sprezzatura Ltd01 AUG 19891.14+EXPERTASSIGNMENT, COMPARISON

A little-used but no less useful structure is the direct assignment by comparison. That is to say, assigning a variable directly by an explicit comparison E.G.

A = IF X<20 THEN "L" ELSE "A"

(Volume 1, Issue 4, Page 3)