Empty dialog output

Dan Laüt's icon

Objective: dialog produces output on OK if any text entered, else bang.

Approach: load a register with some token; open dialog; if OK without entering text, bang register to output token and route token, else output input thru register.

Issue: the routed token does produce a bang, but it does not trigger the message. How can this be?

Max Patch
Copy patch and select New From Clipboard in Max.

Sébastien Gay's icon

MAX doesn't seem to handle null messages ? Workaround :

Max Patch
Copy patch and select New From Clipboard in Max.
Dan Laüt's icon

The old thread was about banging an emtpy message being like whipping a dead horse, but the fundamental issue is the same. The reason my previous patch doesn't work is that the output of the route should be fromsymbolled. Duh.

This works:

Max Patch
Copy patch and select New From Clipboard in Max.

Only thing is, it will also output the 'None' message on Cancel. You'd gave to gate that.