Jump to content

Ilogic - need help with "Case"


Faouweb

Recommended Posts

Hi :)

I have made a Part and added some ILogic code, if i change the length of the Part the numbers of holes change, as you can see in the picture:

kbbw.png

 

The problem is, if i click on the red cross to close the window without selecting any value the Part disappear :unsure:

What I have to add at my code to solve the problem? I know that with Case we usually use Default, but it does not work in my code :oops:

Here is the code:

longueur = InputListBox("Prompt", MultiValue.List("longueur"), longueur, Title := "Faouweb", ListName := "List")

Select Case longueur
Case  24.64
   d20 = 2
Case  37.3
   d20 = 3
Case  88.2
   d20 = 7 


End Select

iLogicVb.UpdateWhenDone = True

The file is bellow.

Thank you ;)

Part1.zip

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...