Hi Meldexun!

Generally, things that return values are queries, so you'll have to put it into a structure along the lines of

IF "c1&c2"
CharacterGetAbility(_Value, <Character>, <Ability>)
IsGreaterThen(_Value, 5)
THEN

etc.