2020-12-26 15:15:51 +01:00
|
|
|
%if 'test' in %%extra.ejabberd.description
|
|
|
|
contain test
|
|
|
|
%end if
|
|
|
|
%%len(%%extra.ejabberd.description)
|
|
|
|
%if 'a' in %%extra.ejabberd.description
|
|
|
|
contain a
|
|
|
|
%end if
|
2019-12-22 15:49:21 +01:00
|
|
|
%for %%description in %%extra.ejabberd.description
|
2020-12-26 15:15:51 +01:00
|
|
|
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
|
2019-12-22 15:49:21 +01:00
|
|
|
%end for
|
2020-12-26 15:15:51 +01:00
|
|
|
leader2: %%extra.ejabberd.description[0]
|
|
|
|
follower2: %%extra.ejabberd.description[0].mode
|