Advertisement
Guest User

Print

a guest
Oct 21st, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ///@description Print(string, value)
  2. /// @function Print
  3. /// @param string
  4. /// @param value
  5.  
  6. // Prints, same way as show_debug_message, but with write options
  7.  
  8. var argCount = argument_count;
  9.  
  10. switch (argCount){
  11.     case 0:
  12.         show_debug_message("No value passed to print.")
  13.     break;
  14.    
  15.     case 1:
  16.         var _value = argument[0];
  17.         if(_value == true) _value = "True"; else if(_value == false) _value = "False";
  18.         show_debug_message(_value);
  19.     break;
  20.    
  21.     case 2:
  22.         var _string = argument[0];
  23.         var _value = argument[1];
  24.        
  25.         if(_value == true) _value = "True"; else if(_value == false) _value = "False";
  26.         show_debug_message(_string + string(_value));
  27.     break;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement