de en es fr
Let the machine help
Light teasing, exhibition, BDSM, sissyfication, watersports... with sounds and pictures


Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Return is ignored in a closure
PostPosted: Thu Oct 27, 2016 1:15 pm 
Offline
Active member
User avatar
Hi to everyone.... and sorry for my English...
Naturally I have a problem
I use enclosure and loops: in one of them Mistress has mercy and after some word the loop interrupt and
the script must be closed.
BUT the script goes right until last instrucion of the "mercyyes" enclosure: last instrucion is ignored at all
and the script (and loops) goes on....why???

//MERCY MANAGEMENT
def mercyno ={ some words....} OK

def mercyyes = {some words...... OK
return "Liz/001StartArcade"} IGNORED!!!

def choosemercy = {
def mercyprob = getRandom(2)
switch (mercyprob) {
case 0: mercyyes()
default: mercyno ()
}
}
//-------------------------------------

def buttonasking= {
//BUTTON TO ASK FOR MERCY
if(time<tempo) {choosemercy ()}
}


//--------------------------------
(1..10).each {
exercise()
buttonasking()
}
//--------------------------------



//END GAME
.......


Top
 Profile Send private message 
 
 Re: Return is ignored in a closure
PostPosted: Thu Oct 27, 2016 5:31 pm 
Offline
Veteran
User avatar
Code:
switch (mercyprob) {
case 0:   mercyyes()
default: mercyno ()
}


Are you not missing a break? Should not that be:

Code:
switch (mercyprob) {
  case 0: mercyyes()
             break
default: mercyno ()
}


?

_________________
Liz

You can't take something off the Internet - it's like taking pee out of a pool.
https://play-clan.site profile: Liz


Top
 Profile Send private message 
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Maroon Fusion theme created by Oxydo
Software, theme modifications, phpBB modification by Doti 2010 - 2020
This website uses session cookies only.