Having trouble calling some user input variables (currentWt, height, BMI, which would then be used in this python script below and pasted to clipboard. Is anyone familiar with alfred workflows and knows how I can do this?
import json
import sys
print ('Current wt: ') + str({var:currentWt}) + (' lbs (') + str({var:currentWt}/2.2) + (' kg)')
print ('Height: ') + str({var:height}) + (' inches')
BMI = ({var:currentWt} / 2.2) / (({var:height} * 0.0254) **2 )
print ('BMI: ' + str(BMI))
hamwiMale = (106 + (6 * ({var:height} - 60)))
hamwiFemale = (105 + (5 * ({var:height} - 60)))
if {var:gender} == 'Male':
print ('IBW (calculated using Hamwi): ') + str(hamwiMale)
elif {var:gender} == 'Female':
print ('IBW (calculated using Hamwi): ') + str(hamwiFemale)