This project is read-only.
Serializable, Use Reassign to obtain a property of a vaiable in ParameterDic and use IfEquals to compare, and run different command based on result.

IScriptCommand isWeekEndCommand =   
  ScriptCommands.IfPropertyEquals("{Date}", "DayOfWeek", DayOfWeek.Sunday, 
    ScriptCommands.PrintDebug("Rest"),
	ScriptCommands.PrintDebug("Work"));
	
await ScriptRunner.RunScriptAsync(new ParameterDic() { 
                { "Date", DateTime.Now },				
            }, isWeekEndCommand); 
	


Output:
Work

Last edited Jul 29, 2014 at 11:04 AM by lycj, version 1

Comments

No comments yet.