dear sir
see my code and give me idea how to i use the numrinc and string variable in jscode in streamlit application thank you in advance for your help
‘‘‘
yy = 70
#if (params.value < 70) {
score_cellstyle_jscode = JsCode(“”"
function(params) {
if (params.value < &yy&) {
return {
'color': 'white',
'backgroundColor': 'red'
}
} else if (params.value >= 90) {
return {
'color': 'white',
'backgroundColor': 'green'
}
}
return null; // Default styling
}
""")
‘‘‘