Skip to content

Instantly share code, notes, and snippets.

@ScottLilly
Created April 5, 2021 20:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ScottLilly/09e291bf401bfa0ebe7adcadc4c8ea65 to your computer and use it in GitHub Desktop.
Save ScottLilly/09e291bf401bfa0ebe7adcadc4c8ea65 to your computer and use it in GitHub Desktop.
public class Variables
{
public int classVariable1 = 3;
public int classVariable2 = 7;
public int classVariable3;
public void Function1()
{
int functionVariable1;
if(classVariable1 < 5)
{
functionVariable1 = 1;
int innerVariable1;
}
else
{
functionVariable1 = 2;
int innerVariable1;
}
if(functionVariable1 < 3)
{
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment