So what we have at this point is that the condition in our code becomes true
when we see a double quote and it becomes false when we see a single quote.
At this point, we should have enough material to solve the problem.
What's the correct way to fix this condition--
should it be a check for the just double quotes and single quotes and tags,
should we go and invert the condition such that not tag is being checked,
should we put parenthesis around the or condition,
or should it be none of the above and something completely different.
Dunque cio' che abbiamo a questo punto e' una condizione nel nostro codice che diventa true
quando trova un doppio apice e diventa false quando ne trova uno singolo.
A questo punto, abbiamo sufficiente materiale per risolvere il problema.
Qual'e' il modo giusto di risolvere questa condizione:
dev'essere un check solo per singoli e doppi apici e tag,
dobbiamo invertire la condizione in modo che venga testato not tag,
dobbiamo mettere tra parentesi questa condizione,
o niente di tutto questo e provare qualcosa di completamente diverso?
ダブルクォーテーションであれば条件判定でTrueとなり
シングルクォーテーションであればFalseになります
これだけデータがそろえば問題を十分解決できます
どのように条件を修正すればいいのでしょう
ダブルクォーテーション、シングルクォーテーション、
タグをチェックする?
タグではなくnot tagをチェックするように
条件を変更する?
条件を括弧で囲んでみる?
それともまったく違う何か?
所以,此时我们知道,这个条件语句的结果可以为真,
只要是双引号;而为假则是接收到单引号。
所以,我们应该已经有足够的了解,可以解决这个问题了。
正确的解决这个条件语句的方式--
是改成就是检查"" 和 '' 和tag?
是用相反的条件--检查not tag?
还是我们应该对or 这个语句用括号括起来?
又或是以上三项全不正确,正确的另有选项……