Hi Metz, how are you?
This time my question is: it's possible do that:

--ACCESS=access content
SELECT nid FROM node
--IF=:limit AND :otherLimit
LIMIT :limit
--ELSE
LIMIT :otherLimit
--END

It's possible Metz?
Thank a lot !

Comments

jpfrancesconi created an issue. See original summary.

metzlerd’s picture

Yes, use & instead of and.

jpfrancesconi’s picture

Metz and this it's possible ?

--IF=!(:nro_socio) & !(:id_socio)
AND 1=0;
--END

Thanks !!!

jpfrancesconi’s picture

Metz this work great !

WHERE 1=1
--IF=!:nro_socio & !:id_socio
AND 1=0
--END
--IF=:nro_socio
AND soc.nro_socio = :nro_socio
--END
--IF=:id_socio
AND soc.id_socio = :id_socio
--END

Thanks the same !

metzlerd’s picture

Status: Active » Closed (works as designed)

Glad you got it sorted.