i am trying to write a trigger for a process memory usage:
if (exists wmi) then ( ((string value of selects “WorkingSetSize from win32_process where Name = ‘ABC.exe’” of wmi) as integer) / (1024*1024)) as string & " MB" else “Not available”
I can use the above to know the memory usage, but how do i turn this into a trigger (true or false)