Please help to write in proper C# format

Hi, I am new to Unity and C#, below is what I tried to write in c# but Unity seems does not understand. Meaning is:“If GetCurrentDestinationState is not equal to Jump or Wallrun, and
GetCurrentState is not equal to Jump or Wallrun, then gravity is true.” Can anyone help me to change it in a proper C# way? Thanks in advance :slight_smile:

 if (asm.GetCurrentDestinationState() != "jump" || asm.GetCurrentDestinationState() != "wallrun" & asm.GetCurrentState() != "jump" || asm.GetCurrentState() != "wallrun") 
    					gravity = true;

You forgot () and & instead of &&.

// UnityScript
var dest : String = asm.GetCurrentDestinationState();
var curr : String = asm.GetCurrentState();
// C#
string dest = asm.GetCurrentDestinationState();
string curr = asm.GetCurrentState();

if ( (dest != "jump" || dest != "wallrun") 
    && (curr != "jump" || curr != "wallrun") )
    gravity = true;