• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

ilogic even or odd

  • Thread starter Thread starter Tarkus
  • Start date Start date

Tarkus

Guest
Hello everyone,
I am starting the first approaches with ilogic, and I need to create a condition where if the number of operations in a series is equal to me, activates a subsequent workmanship, if it is odd, I activate another one.
I can't find what the operator can do for me.
Can anyone help me? :smile::smile:
 
I never used it, but did you try to look at how this condition is expressed in simple programming as in excel? ?
 
I do not know the instructions available in ilogic, if there is the function int (full) you could compare the int(n/2) with n/2 if the number is equal otherwise it is odd. if there is the mod instruction you could do n mod 2 if the result is 0 is equal... test

hello and good year to all
 
I do not know the instructions available in ilogic, if there is the function int (full) you could compare the int(n/2) with n/2 if the number is equal otherwise it is odd. if there is the mod instruction you could do n mod 2 if the result is 0 is equal... test

hello and good year to all
Yes, there's the mod function, but I've been trying all night and I don't get anything,
Maybe I write bad the function or I didn't understand how to do it....,can you make an example?
Thank you.
 
in visual basic use this syntax:
a = 10 mod 2 a=0
a = 13 mod 2 a=1
the result is the remainder of the division 14 mod 3 =2
then you will put a condition if a = 0 then procedure_numero_pari else procedure_numero_dispari.

if mod does not work test with the whole:
a= int(numbers/2)
b= number of lights/2
if a = b then procedure_number_even else procedure_number_even

if these days I have time I will also ilogic and then I do tests that can always be interesting

greetings
 
in visual basic use this syntax:
a = 10 mod 2 a=0
a = 13 mod 2 a=1
the result is the remainder of the division 14 mod 3 =2
then you will put a condition if a = 0 then procedure_numero_pari else procedure_numero_dispari.

if mod does not work test with the whole:
a= int(numbers/2)
b= number of lights/2
if a = b then procedure_number_even else procedure_number_even

if these days I have time I will also ilogic and then I do tests that can always be interesting

greetings
Thank you.
Now I try, even if I don't know if ilogig digests all this.
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top