Telling a script if a record is locked

Discussion created by JoeSand on May 23, 2017
Latest reply on May 23, 2017 by JoeSand

How would I make a script sense if another user has a record locked at the beginning of the script, so I can prevent it from running?  I figured there was a get function or something indicating this status, but I haven't found it  yet,