Script question

Hendrik W. M. van Eeden hvaneeden at comcast.net
Thu Jan 17 17:00:20 PST 2008


I do not believe so.  If the first or any if statements fail it will  
drop straight to the associated end if.  I believe that your sample  
will only write a log entree if all if statements are true i.e all  
temps are not equal.


Henk



On Jan 17, 2008, at 3:52 PM, Chuck wrote:

> 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