Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1538

Date and Time • Re: LuaCalendar

$
0
0
I've done some further testing with the events XML file in the meantime.

Comparisons (with Boolean results) using the operators '<' or '=' (sic!) do work.

Comparisons using '>' or '==' (which basically should be the LUA operator for test of equality) do not work.

The made-up operator '~<' (basically should be equivalent to '>=') seemes to deliver always true.

Mixing of different operators within the calculation of one single event does not seem to work.

Thus a final workaround sounds somehow like this:

Code:

<Set Month="11"><Event Day="(({$LastSun}=27)*{$LastSun})+(({$LastSun}=28)*{$LastSun})+(({$LastSun}=29)*{$LastSun})+(({$LastSun}=30)*{$LastSun})">1. Advent</Event> </Set><Set Month="12"><Event Day="(({$FirstSun}=4)*{$FirstSun})+(({$FirstSun}=5)*{$FirstSun})+(({$FirstSun}=6)*{$FirstSun})+(({$FirstSun}=7)*{$FirstSun})">2. Advent</Event><Event Day="(({$FirstSun}=4)*{$SecondSun})+(({$FirstSun}=5)*{$SecondSun})+(({$FirstSun}=6)*{$SecondSun})+(({$FirstSun}=7)*{$SecondSun})">3. Advent</Event><Event Day="(({$FirstSun}=4)*{$ThirdSun})+(({$FirstSun}=5)*{$ThirdSun})+(({$FirstSun}=6)*{$ThirdSun})+(({$FirstSun}=7)*{$ThirdSun})">4. Advent</Event><Event Day="(({$FirstSun}<4)*{$FirstSun})">1. Advent</Event><Event Day="(({$FirstSun}<4)*{$SecondSun})">2. Advent</Event><Event Day="(({$FirstSun}<4)*{$ThirdSun})">3. Advent</Event><Event Day="(({$FirstSun}<4)*{$FourthSun})">4. Advent</Event></Set>
Clumsy, I know.

Maybe the handling of operators within the event XML file could be enhanced in future versions.

Statistics: Posted by Jerry_B — 54 minutes ago



Viewing all articles
Browse latest Browse all 1538

Trending Articles