If you do case when {type} = 'Invoice' then 1 els...
# suitescript
b
If you do case when {type} = 'Invoice' then 1 else 0 end do you get anything?