Mentawai Forum - Mentawai Web Framework
Search
Recent Topics
Member Listing
Back to home page
Register
/
Login
Tag if
Forum Index
->
Comentários Gerais
Author
Message
06/04/2006 15:12:20
Subject:
Tag if
andre_guitar7
Joined: 21/03/2006 12:03:21
Messages: 259
Location: Curitiba - PR
Offline
Qual é a sintaxe da tag if do Menta? Eu achei alguns exemplos mexi na api, perdoem minha ignorância...
Se fosse pra eu fazer
if( variável != "" )
?
vlw
06/04/2006 16:58:59
Subject:
Re:Tag if
saoj
Joined: 01/07/2005 09:59:17
Messages: 2846
Location: Rio de Janeiro, RJ
Offline
<mtw:if test="user.name" value="sergio" />
</mtw:if>
<mtw:if test="user.name" value="sergio" negate="true" />
</mtw:if>
Sergio Oliveira
07/04/2006 07:03:51
Subject:
Re:Tag if
andre_guitar7
Joined: 21/03/2006 12:03:21
Messages: 259
Location: Curitiba - PR
Offline
Valew... ele ainda não tem tags else, ou elseif, né... só pra saber...
07/04/2006 08:42:28
Subject:
Re:Tag if
saoj
Joined: 01/07/2005 09:59:17
Messages: 2846
Location: Rio de Janeiro, RJ
Offline
Vc consegue o efeito de um else com o atributo negate="true", que todas as tags conficionais devem ter.
Sergio Oliveira
Forum Index
->
Comentários Gerais
Go to:
Select a forum
Mentawai - English
-------------
General Comments
Mentawai - Portuguese
-------------
F.A.Q.
Comentários Gerais
Bugs
Powered by
JForum 2.1.6
©
JForum Team