I'm trying to make a block of code that colours numbers depending on the value. I know how to pull text but not numbers that can be affected with operations. I'm new so sorry if it's extremely easy!
var slides = Presentation.getSlides();
slide.getShapes().forEach(shape => {
var text = shape.getText();
Logger.log(text.asString());
var highNum = text.find("10")
var greenNum = // code that pulls all numbers in text and between 9.75 and 9
var lowNum = // code that pulls all numbers in text and between 3.75 and 0
highNum.forEach(s => {
s.getTextStyle().setForegroundColor("#FFD700");
greenNum.forEach(s => {
s.getTextStyle().setForegroundColor("#00FF00");
lowNum.forEach(s => {
s.getTextStyle().setForegroundColor("#FF0000");
just need a way to do all that in the comments
Extracting numbers from text: