Manish /Mustafa Rafee ,
Tested this one and its found working
select
CASE when OCRD.CreditLine = '1' or OCRD.County = 'test1' or ocrd.county= 'test2' then 'true' else 'false' end
from
OCRD
where
OCRD.CreditLine= '1' and CardCode=$[ORDR.Cardcode]
But the issue is that i got this code from my friend , is there any overlapping if i use this code permanently??Because i,ve been using the following query for another template .Please check it
SELECT
CASE WHEN OCRD.Balance>=OCRD.CreditLine THEN 'TRUE' ELSE 'FALSE' END
FROM
OCRD
WHERE
isnull(OCRD.CreditLine,0)>0 and CardCode=$[ORDR.Cardcode]