Jump to content
  • 0

Comment Tester 4 Champs Dans Une Même Fonction "when" ?


Mario
 Share

Question

Bonjour,

Comment écrire :

Si l'ensemble des "Champ1" et vide, "Champ2" et vide, "Champ3" et vide, "Champ4" et vide.

Alors "placer ce texte"

Sinon, "placer cet autre texte"

Une fonction qui test 4 champs ?

Merci

Voilà la source d'un test sur 1 champ :

<xsl:choose><xsl:when test="fmrs:field[@name=Champ1]/fmrs:data = ''">Texte1</xsl:when><xsl:otherwise>Texte2</xsl:otherwise></xsl:choose>
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

tout comme dans FileMaker en utilisant and et or. Par exemple :

<xsl:choose>	<xsl:when test="fm:field[@name=rub1]/fm:data = '' and fm:field[@name=rub2]/fm:data = ''">		<xsl:text>Texte1</xsl:text>	</xsl:when>	<xsl:otherwise>		<xsl:text>Texte2</xsl:text>	</xsl:otherwise></xsl:choose>
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...