Here you have a little task that will help you to get more information than the 'KEYG' built-in variable, about the device lock...
You can check the status of the mobile data with this task: ON or OFF.
- Thanks to @DutchOfBurdock (Reddit) for helping.
Sorry but there is an issue with the forum where it can't send out emails.Because of this the forum is in read-only mode at the moment.
You can find the currently known issues with Tasker and possible workarounds here.
Separate names with a comma.