Couldn't quite get what you want, ask, say, or whatever that was, but you should use "return statement" instead of "if condition return true else return false", for example:
Jass:
function Trig_spell_Conditions takes nothing returns boolean
return GetSpellAbilityId() == 'ANsb'
endfunction