i have a script where i want to use if function to do something but i don't know how to use it, can anybody help me? here's the code: ; $conn is a variable that opens a connection to the database
; $rs is a ADODB Object
;=============================
$Query = "Select * from table1"
$rs = $conn.Execute ($Query)
$array = $rs.GetRows() the problem is that when the $rs variable is empty the script stops. i want to know how to check if this variable is empty and holds no data