alias_angelius a écrit :Et pour les autre level au lieu de faire :
tcl
if {[matchattr $hand Z] || [matchattr $hand X]} {
Pourquoi ?
Autant faire :
tcl
if {[matchattr $hand ZX] {
Sa fera exactement la même chose en plus court non ?
je ne suis pas d 'accord la
tcl
if {[matchattr $hand ZX] {
équivaut à
tcl
if {[matchattr $hand Z] && [matchattr $hand X]} {
ce qui est très différent de
tcl
if {[matchattr $hand Z] || [matchattr $hand X]} {