Advertisement
anatolt

PB return true

May 4th, 2015
649
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Procedure Money(num)
  2.   If num < 0
  3.     If Money < -num
  4.       tip("Недостаточно денег")
  5.       Debug "Недостаточно денег"
  6.       Return #False
  7.     Else
  8.       Money + num
  9.       Return #True
  10.     Else
  11.       Money + num
  12.     EndIf
  13.   EndIf  
  14. EndProcedure
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement