I\'m looking a way to build conditional assignments in bash:
In Java it looks like this:
int variable= (condition) ? 1 : 0;
another way
case "$variable" in condition ) result=1;; *) result=0;; esac