natesmithzombies

Same Thing, Different Way

Jan 28th, 2017
1,637
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.48 KB | None | 0 0
  1. true_variable = 1;
  2. false_variable = 0;
  3. if( true_variable == true ) // This will evaluate because I set true_variable equal to 1 which is also true
  4. {
  5.     iprintlnbold( "The variable true_variable is true" );
  6. }
  7. else // This wont execute
  8. {
  9.     iprintlnbold( "The variable true_variable is not true" );
  10. }
  11. if( false_variable == false )
  12. {
  13.     iprintlnbold( "The variable false_variable is false" );
  14. }
  15. else
  16. {
  17.     iprintlnbold( "The variable false_variable is not false" );
  18. }
Advertisement
Add Comment
Please, Sign In to add comment