I’m attempting to use a boolean to swap between ammo types by pressing the X key. my issue is that since this is in the update function it keeps triggering both to occur. is there anything I can do to keep this from happening? 155414-code.png

A boolean is a binary state. It has two values. If you have two states you can use a bool if you have more maybe an enum or other system would be better suited

if you are trying to flip a bool do it like:

if(Input.GetButtonDown("MyCommand")) 
{
        myBool = !myBool;
}

P.s. the GetKey and GetButton can run multiple times as every time the frame runs it will be reevaluating that if statement.

You want the GetKeyDown and GetButtonDown.