sub conditions

Handle problems or report system bug
Post Reply
samuel_anttunes
Posts: 29
Joined: Thu Mar 09, 2023 12:25 pm

sub conditions

Post 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.
leedalgoo
Posts: 11
Joined: Sun Mar 19, 2023 7:18 am

Re: sub conditions

Post 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)
zunaid
Posts: 5
Joined: Tue Mar 07, 2023 9:08 am

Re: sub conditions

Post 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%#
samuel_anttunes
Posts: 29
Joined: Thu Mar 09, 2023 12:25 pm

Re: sub conditions

Post 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.
Post Reply