Question: I have a script that will check for multiple conditions in if statement and run a desired command if its true. 

```
  if [ ! -f /tmp/a ] && [ ! -f /tmp/b  ]; then
        touch /tmp/c  else 
        echo "file exists"  fi

```

I would now need to know which out of the multiple condition was true. 
Eg: /tmp/a or /tmp/b which ever existed. Is there a way to get that in my else condition?

Answer: 
Below is an example of what you should do to get the label display updated after every press of your button.

* You need to use `textvariable` instead of `text` in label.
* You need to declare a `StringVar` variable in your main code and have it updated in your function mov1.
* Note my example on how to get a string before passing it into your
StingVar variable.

Have fun!

**Example code**

```
# ministry of trade
from tkinter import *
import random

# create root window
root = Tk()

# Set the initial state
state=7    # number of objects
statevar = IntVar()
statevar.set(state)

def move1():
                                # move is assigned
    global statevar

    if statevar.get()>0:
        print('statevar.get()>0')
        print(statevar.get())   #for testing only
        statevar.set(statevar.get() - 1)
        print(statevar.get())   #for testing only
        a = "Aantal munten op stapel " + str(statevar.get())
        print('a = {}'.format(a))
        text1.set(a)
        return statevar

a = "Aantal munten op stapel " + str(statevar.get())
text1=StringVar()
text1.set(a)
labelAantalMunten = Label(root, textvariable=text1)    #state
labelAantalMunten.pack() # orders to add the widget label to the root window and display it

# electorate of Button
button1 = Button(root, text="neem 1 steen", command=move1)
button1.pack()

# start the main events loop    
root.mainloop()

```
```
    labelWelkSpeler = Label(root, text=("Nu is speler ",playervar.get()," aan de beurt"))  #player

```

This gets the value of playervar ONCE (at the time you create the label), and builds the text of the label at that time. (And probably doesn't build the text you actually wanted, as what you wrote is a tuple construction, not a string concatenation.) It does not magically cause this code to be rerun every time that playervar changes!

The only way to get a Label to auto-update from a variable is to specify it as the `textvariable=` option, not `text=`. The variable has to hold the entire text to be shown, so it's almost certainly going to be a StringVar, not an IntVar. You would need to keep the player score in a separate variable (an ordinary Python variable, most likely), then .set() the StringVar yourself whenever it changes.