Ensure that function only gets called once in a frame

How do I ensure that a function cannot be called more than once in a single frame? I have is so that the left trigger activates the jump function if pressed and the right trigger also activates the jump function if pressed. You can only jump if your player is grounded. I found that when I press both triggers at the same time, it runs the jump function twice (and i go twice as high), but I only want it to run it once if both are pressed at the same time.

This may be a little overkill but read about Semaphores.

You can consider the following,

private bool callOnce;

void Update(){

if(Input.LeftTrigger || Input.RightTrigger){

callOnce = true;

      }

if(callOnce){

callOnce = false;
Jump();

       }

}

public void Jump(){

*//Jump script goes here*

}

I am not sure what sort of Input you are using for Jump function. There is a difference between GetKey and GetKeyDown functions. You can refer below,

GetKey returns true while the user holds down the key
GetKeyDown returns true during the frame the user starts pressing down the key.

Considering your question, I assume you have to use GetKeyDown for calling your Jump function once at a single frame.