Can you incorporate printed messages in the output screen into new script?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By MIna

I’m not sure the best way to word this but I was just wondering,

If you had an input even print a message to the output such as print(“ThisWorks”), could you use that in another function.

For example something like:
If output prints “ThisWorks”
->Do this

And if so, what would be the proper way to write it?

Again I’m not sure if I’m wording this very clearly but I wonder if it essentially would be a different way to signal across scenes.