Highlighted

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

Explorer ,
Jun 06, 2020

Copy link to clipboard

Copied

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

Topics

Scripting

Views

78

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

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

Explorer ,
Jun 06, 2020

Copy link to clipboard

Copied

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

Topics

Scripting

Views

79

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Have something to add?

Join the conversation