WhiteHatBox
Share Page
Following(1)
Partner(s)
Karmagedon

IF with NUM

ReplyThanks 2015/08/25 12:46:03 0 0

I can not understand how to use Double(number) with Process Control - IF for compare with a certain value (for example - "1"). This is possible?


My test module:

/editor/attached/file/20150825/20150825124556_4330.dat

Module Development - [email protected] // Thanks - https://ko-fi.com/arbots
kabone76
2015/08/25 13:30:31
What are you trying to do? From what I see here the reason it fails is because you have NUM set the value of 0. So because it is 0 your it sets your if statement to false, and you try and set a value to false, but you do not have anywhere specified to set the value. You may want to be using Variable Operate to set your values.
Fuck BotChief! WhiteHatBox willl steal from you, disable your keys when they don't get their way
kabone76
2015/08/25 13:36:41

/editor/attached/file/20150825/20150825135258_4945.dat



Your issue is the global variables.. I have the same issue and do not use global variables. This file should fix your issues.

Fuck BotChief! WhiteHatBox willl steal from you, disable your keys when they don't get their way
Karmagedon
2015/08/25 14:11:38
2 # kabone76 8/25/2015 1:30:31 PM
What are you trying to do? From what I see here the reason it fails is because you have NUM set the value of 0. So because it is 0 your it sets your if statement to false, and you try and set a value to false, but you do not have anywhere specified to set the value. You may want to be using Variable Operate to set your values.

I tried to set value at startup.

But even in your example, the module does not perform any one of the branches of the conditions.

If you can, write your own example using IF with NUM, because I can not understand.

Module Development - [email protected] // Thanks - https://ko-fi.com/arbots
kabone76
2015/08/25 15:15:53

/editor/attached/file/20150825/20150825151508_2903.dat



I have also attached a video of it working.. http://youtu.be/DES8zML0DHw it will be done uploading in about 2 mins.

Fuck BotChief! WhiteHatBox willl steal from you, disable your keys when they don't get their way
Karmagedon
2015/08/25 15:53:07
5 # kabone76 8/25/2015 3:15:53 PM

/editor/attached/file/20150825/20150825151508_2903.dat



I have also attached a video of it working.. http://youtu.be/DES8zML0DHw it will be done uploading in about 2 mins.

Thank you for example and video! Everything is working.
Module Development - [email protected] // Thanks - https://ko-fi.com/arbots
kabone76
2015/08/25 16:02:28
awesome (:
Fuck BotChief! WhiteHatBox willl steal from you, disable your keys when they don't get their way
Karmagedon
2015/08/25 16:10:48

But why the global variable does not work in the if control? Excuse me, but I think it is nonsense.

If I want to use a global variable as the option to configure the work module?

Module Development - [email protected] // Thanks - https://ko-fi.com/arbots
kabone76
2015/08/25 17:08:36
at the moment from what I understand there are some issues with it. I have been emailing support about it and they are working on it. Best to let them work on it then side track them with something that is going to take time. Also from what I have seen there hasn't been a need for a global variable yet (You can get around it by writing to files and opening the values from it)
Fuck BotChief! WhiteHatBox willl steal from you, disable your keys when they don't get their way
Karmagedon
2015/08/25 19:26:56
You know, what are some nuances at work with Global Variables?
Module Development - [email protected] // Thanks - https://ko-fi.com/arbots
<< < 12 > >>
VerifyCode
Advanced Option