How to check if the checkbox is checked or not

How to check if the checkbox is checked or not. I used get aatribute for the checkbox and I can see in the properties in the ui explored if its checked or not. How do we create condition for this ? also if checkbox is not checked I want to check it . Thank you

@RajivKumar12 - use get attribute activity ( mentioned the attribute name showed in uiexplor) -> create a variable and assign to the output value (example - strCheckBoxStatus)
write your if condition like – if strCheckBoxStatus.Equals(“checked”)
True --> write your logic
False --> use the click activity and pass the selector to check the checkbox…