How do you create a macro that does not output any text, it just returns true or false, for use inside an if-else block?
Here is what I want to do:
if (^fact_lt(tim hammer 20))
{
Output text 1
}
else
{
Output text 2
}
outputmacro: ^fact_lt(^subject_name ^verb_name ^amount)
[
@0 = ^query(direct_sv ^subject_name)
if (@0)
{
if (first(@0object) < ^amount)
{
return true
}
else
{
return false
}
}
else
{
return false
}
]