|
Myrkul Wanderer
Joined: 21 Aug 2008 Posts: 85
|
|
Last edited by Myrkul on Thu Apr 14, 2011 11:18 pm; edited 1 time in total |
|
|
|
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: Sun Jun 14, 2009 3:17 am |
Code: |
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
<alias name="Sep" copy="yes">
<value>#VAR x {1|%null|1|2|%null|1|2|3|%null|1|2|3|4}
#var $num 1
#forall @X {#If (%null(%i)) {#add $num 1} {#additem %concat(var,$num) %i}}</value>
</alias>
</cmud> |
|
|
_________________ Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram |
|
|
|
Myrkul Wanderer
Joined: 21 Aug 2008 Posts: 85
|
Posted: Sun Jun 14, 2009 3:26 am |
[edit][/edit]
|
|
Last edited by Myrkul on Thu Apr 14, 2011 11:18 pm; edited 1 time in total |
|
|
|
Myrkul Wanderer
Joined: 21 Aug 2008 Posts: 85
|
Posted: Sun Jun 14, 2009 3:28 am |
[edit][/edit]
|
|
Last edited by Myrkul on Thu Apr 14, 2011 11:17 pm; edited 2 times in total |
|
|
|
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: Sun Jun 14, 2009 3:45 am |
I actually just made it a bit better, try this.
Code: |
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
<alias name="Sep" copy="yes">
<value>#VAR x {%null|%null|1|%null|%null|%null|%null|1|2|%null|1|2|3|%null|1|2|3|4}
#var $num 1
#var $null 1
#forall @X {
#If (%null( %i)) {
#IF ($null==0) {#add $num 1}
$null=1
}
#IF (!%null( %i)) {
#additem %concat( var, $num) %i
$null=0}
}</value>
</alias>
</cmud> |
Oh, and you are welcome. |
|
_________________ Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram |
|
|
|
|
|