Сначала я создаю следующие значения:
Command: execute script
Target: return Math.floor(Math.random() * (25 - 1) + 1) + "-" + Math.floor(Math.random() * (12 - 1) + 1) + "-" + Math.floor(Math.random() * (2030 - 2020) + 2020);
Value: start
Command: execute script
Target: return Math.floor(Math.random() * (25 - 1) + 1) + "-" + Math.floor(Math.random() * (12 - 1) + 1) + "-" + Math.floor(Math.random() * (2030 - 2020) + 2020);
Value: end
Допустим, $ {start} показывает 2-3-2025 , а $ { end} показывает 4-11-2028 .
Мне нужно, чтобы $ {end} ВСЕГДА был "БОЛЬШЕ", чем $ {start}, поскольку это должны быть даты.
Для этого я пробую следующее:
Command: execute script
Target: return ${end} > ${start};
Value: result
Но это показывает только логическое значение True или False, мне нужно, чтобы оно всегда было TRUE и показывало строку. Я также пытался с:
Target: return (Math.floor(Math.random() * (25 - 1) + 1) + "-" + Math.floor(Math.random() * (12 - 1) + 1) + "-" + Math.floor(Math.random() * (2030 - 2020) + 2020)) > ${strat};
Но это также показывает True или False. Кто-нибудь может мне помочь? извините, если мой английский sh плохой.