How to pass Multiple variables in a function?

How to pass the float and a bool under function UpdateMove in C++? I tried many times and the code is not compiling.

.h
void MoveUpdate(float FAxisValue, bool Foorward)
.cpp

void APUBGCharacter::MoveUpdate(float FAxisValue, bool Foorward)
{
       //some logics
}

The working blueprint function, I want to translate this into C++.

I figured it out, correct me if I am not correct.

.h
void MoveForward(float FAxisValue, bool Foorward)
.cpp

void APUBGCharacter::MoveUpdate(float FAxisValue)
{
       MoveForward(FAxisValue, FAxisValue);
}

.h
void MoveForward(float FAxisValue, bool Foorward)
.cpp

void APUBGCharacter::MoveForward(float FAxisValue, bool Foorward)
{
       if(Forward)
         {
          //some logics
         }else { other logic}
}