how to do the logic to use the switch? I would like to save the "positive" and "negat

how to do the logic to use the switch? I would like to save the "positive" and "negative" result in a database. How you do it?

Hi Sabrina,

I hope your question is about how to utilize the switch case to write the logic. If it is, for your case you just need to adapt something like this.

Regards,

Saravanan Santhanam

mvp_badge
MVP

If there is only two outcomes (true/false) are required as requested by Sabrina, an IF instead of a SWITCH is more appropriate, the example given by Saravanan has 3 outcomes "negative", "positive" and ""

Yes Daniel. IF statement is more appropriate than SWITCH for the use case. Since she specifically asked about SWITCH, I showcased an simple example. 

and in "source"?   

 with "true" and "false"

HI Sabrina Avolio, 

if possible then please provide some more detail that what you want as "source "  with "true" and "false" 

Thanks


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.