Page 1 of 1

sub conditions

Posted: Sun Mar 19, 2023 7:07 am
by samuel_anttunes
I wanted you to add a function that checked sub conditions and then perform an action.
exemplo
#%VALUE(samuel)@IFEQ@VAR(USER_NAME)@AND@VALUE(1956)@IFEQ@VAR(USER_ID)@THEN( It's all right )@ESLE@NULL%#

After the primary condition and the sub is confirmed show me something. I need for a system I'm doing here.

Re: sub conditions

Posted: Sun Mar 19, 2023 7:32 am
by leedalgoo
Try this

#%VALUE(samuel)@IFEQ@VAR(USER_NAME)@THEN(1)@ELSE(0)@SET(conditionone)@NULL%#
#%VALUE(1956)@IFEQ@VAR(USER_ID)@THEN(1)@ELSE(0)@SET(conditiontwo)@NULL%#
#%VAR(conditionone)@PLUS@VAR(conditiontwo)@SET(combine)@NULL%#
#%VAR(combine)@IFEQ(2)@THEN(It's all right)@ELSE(It's not all right)%#

(i've tested it and it's working)

Re: sub conditions

Posted: Sun Mar 19, 2023 2:17 pm
by zunaid
multiple conditions already supported

try this
#%VALUE(samuel)@IFEQ@VAR(USER_NAME)@VALUE(1956)@IFEQ@VAR(USER_ID)@THEN( It's all right )@ESLE@NULL%#

Re: sub conditions

Posted: Mon Mar 20, 2023 2:17 am
by samuel_anttunes
I had deleted this tropico kkk because I have already solved the problem . But now I saw that it is still here. As the answers are good I will leave the tropico to future learners. Thank you very much.