# What are the different ways of invoking a command?

  1. To invoke command synchronously call the command with suffix Now

    grab[LotteryCommandSet].createNow(lotteryName = "metastay", amount = 80000)
    
  2. To invoke command asynchronously call the command with suffix ToQ

    grab[LotteryCommandSet].createToQ(lotteryName = "metastay", amount = 80000)
    
  3. To execute the command code only when pre-conditions are satisfied, call the command with suffix IfPrePass

    grab[LotteryCommandSet].createIfPrePass(CreateCommand.Input(lotteryName = "metastay", amount = 80000))