简体   繁体   English

IBM Watson Assistant - 检查有条件的@sys-date

[英]IBM Watson Assistant - check for @sys-date with condition

In another Q&A you suggested me and I built the following conditions to check for legal age based on the birthday:在另一个问答中,你建议我,我建立了以下条件来根据生日检查法定年龄:

@sys-date.plusYears(18)<= today()

@sys-date.minusYears(18)<= today()

How can I add an additional condition that warns the user that he has not entered a correct date in the input and characters for having used only or even letters?我如何添加一个额外的条件来警告用户他没有在输入中输入正确的日期和只使用字母甚至字母的字符?

If you have a dialog node in IBM Watson Assistant with conditional responses and already have two conditions (old enough / too young), then you could add have a third response without any condition.如果您在 IBM Watson Assistant 中有一个带有条件响应的对话节点,并且已经有两个条件(足够大/太年轻),那么您可以添加没有任何条件的第三个响应。

Conditions are checked in the order top down.按自上而下的顺序检查条件。 If there is an unconditional answer, it serves like an ELSE.如果有一个无条件的答案,它就像一个 ELSE。 There you could respond with some help about the format.在那里你可以用一些关于格式的帮助来回应。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM