rougail/tests/dictionaries/60extra_leadership_name_item/tmpl/mailname

36 lines
843 B
Plaintext

%if 'test' in %%extra['ejabberd']['new_name']
contain test
%end if
%%len(%%extra['ejabberd']['new_name'])
%if 'a' in %%extra['ejabberd']['new_name']
contain a
%end if
%for %%description in %%extra['ejabberd']['new_name']
leader: %%description
follower: %%description['mode']
%if %%description <= %%description['mode']
infeq
%end if
%if %%description >= %%description['mode']
supeq
%end if
%if %%description < %%description['mode']
inf
%end if
%if %%description > %%description['mode']
sup
%end if
%if %%description == %%description['mode']
eq
%end if
%if %%description != %%description['mode']
diff
%end if
%set %%var = %%description + %%description['mode']
%%var
%set %%var = %%description['mode'] + %%description
%%var
%end for
leader2: %%extra['ejabberd']['new_name'][0]['description']
follower2: %%extra['ejabberd']['new_name'][0]['mode']