<whens> look like this:
Code:
<boolean_operation type="and">
<parameter1>
<boolean_operation type="equal to">
<parameter1>
<variable do="get" name="mpp"></variable>
</parameter1>
<parameter2>
<number>1</number>
</parameter2>
</boolean_operation>
</parameter1>
<parameter2>
<boolean_operation type="less than">
<parameter1>
<analogue id="SWC" time="0"></analogue>
</parameter1>
<parameter2>
<number>0.2</number>
</parameter2>
</boolean_operation>
</parameter2>
</boolean_operation>
if mpp==1 && SWC < 0.2 then ...
I'm definitely not the expert, but I don't think you'll be able to find things like date and string manipulation in the Fusion environment.
I think a better way would be to do your logic in another program, then have it use the COM interface to trigger digital outputs or whatever it is you're after.