연결된 콘텐츠 중단하기
When you use Liquid templating, you have the option to abort messages with conditional logic. This page covers best practices when doing so.
다음 예제에서 connected.recommendations.size < 5
및 connected.foo.bar == nil
조건문은 메시지가 중단될 수 있는 상황을 지정합니다.
1
2
3
4
{% connected_content https://example.com/webservice.json :save connected %}
{% if connected.recommendations.size < 5 or connected.foo.bar == nil %}
{% abort_message() %}
{% endif %}
Specify an abort reason
중단 사유를 지정할 수도 있으며, 이 사유는 메시지 활동 로그에 저장됩니다. 이 중단 사유는 문자열이어야 하며 리퀴드를 포함할 수 없습니다.
{% abort_message('Could not get enough recommendations') %}
important:
Braze doesn’t count aborted messages toward the send count in your Braze account or in Currents.
New Stuff!