Skip to main content
Inspiring
June 7, 2020
Question

Recursive function to replace all combinations of conditions (conditional text) to "Unconditional"

  • June 7, 2020
  • 0 replies
  • 190 views

Can any one tell me how to write a recursive function that replaces all conditional combinations to "Unconditional"?

 

Let's say we have three conditions, A, B, and C.

I would need to replace

A -> Unconditional

B -> Unconditional

C -> Unconditional

A&B -> Unconditional

A&C -> Unconditional

B&C -> Unconditional

A&B&C -> Unconditional

 

This is just an example. A document may contain any number of conditions (maybe up to 10).

 

Thanks,

Tak

This topic has been closed for replies.