How to prevent the 10th axis button from being executed more than once when being pressed?

Hello friends.
I am a beginner and I have difficulties for the 10th axis button to be executed only once when pressed.
This input I created to trigger the RT button on the xbox control, below I have an example of how I’m trying to use, when pressing the print command is executed many times.

//Input.GetAxisRaw("RT") represents 10th axis (Joysticks) 
if (Input.GetAxisRaw("RT") == 1)
{
    print(true);
}
if (Input.GetAxisRaw("RT") < 1)
{
    print(false);
}

Because its an axis, it will be > 0 as long as the trigger is pressed. Either create a latch or switch to the new input system and use the trigger as a button. I recommend switching to the new input system, its leaps and bounds better than using the old system.

Edit: Btw this is the wrong forum to post this. Should be under Input System.

Thank you very much, the new input system served me very well.