Switch case


#1

How can we use switch case when we required to compare a integer value with ammount as int (5000,7000,10000)

please telll…

Regards,
BB


#2

Hi @bitubawankar,


In Expression you need to give the amount variable.

in case you need to mention the values like (5000,7000,10000)
Refer this

Regards,
Arivu


#3

can i put that kind of condition in switch case
if yes… then its giving expression error…

image


#4

@bitubawankar, Refer this,

Forum Posts…

Regards,
Dom :slight_smile:


#5

In Expression you need to give ammount

in case you need to give 5000

Regards,
Arivu


#6

Thanks friend


#7

thanks


#8

Hi,

How to pass string that should be taken as input and consider that string as condition in SWITCH.

Example : variable is a string that is taken as string input.
If I give the value “a or b or c or d” it should execute one activity
If I give the value as “e or f or g or h” it should execute different activity.
Please provide the solution along with the workflow.


#9

Hi,

How to pass string that should be taken as input and consider that string as condition in SWITCH.
Example : variable is a string that is taken as string input.
If I give the value “a or b or c or d” it should execute one activity
If I give the value as “e or f or g or h” it should execute different activity.
Please provide the solution along with the workflow.


#10

@Nihalm7 Do you mean something like this? This is not very scalable but it seems to answer your question.


#11

HI @Bernardo_Ferreira,
You have written case a,case b…
Is it possible to write case a,b,c,d in one case.case e,f,g,h in another case.How to give condition like this?

Could you share the workflow with detailed example.
First i will be giving the input of any of the 26 alphabets,this variable I will be passing in the switch expression.
IN switch
For case A,B,C,D -----It should execute one action
For case E,F,G,H,I,J ------It should execute different action
For case K,L,M,N,O,P-- It should execute another different action.


#12

Hey, what you are looking is solved by If Statements.

It doesn´t make sense to evaluate expressions in a Switch.


#13

hi @Bernardo_Ferreira,

Could you share the workflow ,how to write the condition.