Script question

Chuck xtension4osx at mac.com
Thu Jan 17 12:52:41 PST 2008


I have this script.

set Temp_Outside to (value of "Temperature Outside.web") as integer
set Temp_Upstairs to (value of "Temperature Upstairs.web") as integer
set Temp_Downstairs to (value of "Temperature Downstairs.web") as  
integer
set Temp_Main_Floor to (value of "Temperature Main Floor.web") as  
integer

if (value of "Temperature Outside.web") is not equal to Temp_Outside  
then
	if (value of "Temperature Upstairs. web") is not equal to  
Temp_Upstairs then
		if (value of "Temperature Downstairs.web") is not equal to  
Temp_Downstairs then
			if (value of "Temperature Main Floor.web") is not equal to  
Temp_Main_Floor then
				write log "Outside: " & Temp_Outside & "  Upstairs: " &  
Temp_Upstairs & "  Downstairs: " & Temp_Downstairs & "  Main floor: "  
& Temp_Main_Floor
			end if
		end if
	end if
end if

Will this check all values and only write a log when there is a  
change in any of the values?

Chuck


More information about the XTensionlist mailing list