[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

Re: emh: checking for existing functions



On Mon, 20 Sep 1999, Xose Manoel Ramos wrote:

[...]
> Well, I discovered this extension uses a variable `__languages[]' to
> store the languages signs. So if I want to check if a language is
> being used I simply need to use this var and not care about the tags.

<array-member language __languages>
returns the index of the language in the __languages variable and a null
string if this language is not found.
Example:
   #use wml::std::lang
   <lang:new id=en>
   <lang:new id=fr>
   <lang:new id=de>
   foo<array-member fr __languages>foo
   foo<array-member it __languages>foo

returns
   foo1foo
   foofoo

-- 
Denis Barbier
WML Maintainer

______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com