[WPS JS Tutorial] Determine whether a cell is empty

  • undefinedrepresents a null value
function isUndefined(){
	if(Sheets.Item("Sheet1").Range("A1").Value2==undefined){
		Sheets.Item("Sheet1").Range("A2").Value2="A1是空值"
	}else{
		Sheets.Item("Sheet1").Range("A2").Value2="A1不是空值"
	}
}

imageimage

Guess you like

Origin blog.csdn.net/MrFlySand/article/details/129395504