Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #2
metzlerd CreditAttribution: metzlerd commentedYes, use & instead of and.
Comment #3
jpfrancesconiMetz and this it's possible ?
--IF=!(:nro_socio) & !(:id_socio)
AND 1=0;
--END
Thanks !!!
Comment #4
jpfrancesconiMetz 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 !
Comment #5
metzlerd CreditAttribution: metzlerd commentedGlad you got it sorted.