Modified or Saved InDesign

Dear All,
Please let me know what syntax we can code for checking whether active document is modified or not saved using vbscript.
See my below code for AppleScript.


if modified of myDocument is true or saved of myDocument is false then
save myDocument to SavePath
end if

Regards,
Poo

Please check if the below code is ok or not
if (myInDesign.ActiveDocument.Save==false||myInDesign.ActiveDocument.Modified==true) then
myInDesign.ActiveDocument.Save filePath
End If

Regards,
Poo