Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

Is cell empty Version 8 (Net) 

Группа действийAction group: Excel 

Описание

Действие проверяет является ли значение в ячейке пустым.

Иконка действия

Image Removed

Параметры действия

Входные параметры  

  1. Контекст - Контекст действия для работы с Excel-документом.

  2. Имя столбца - Наименование столбца, из которого будут получены данные. Если поле не заполнено, то берется значение из поля «Индекс столбца». Например: С.

  3. Индекс столбца - Индекс столбца, из которого будут получены данные. Индексация начинается с 0. Если заполнено поле «Имя столбца», то значение в поле «Индекс столбца» игнорируется. Значение по умолчанию равно 0.

  4. Индекс строки - Индекс строки, из которой будут получены данные. Индексация начинается с 0. Например: 3.

Выходные параметры

  1. На выходе получаем переменную, в которую будет записано значение из ячейки. Если ячейка: пустая, то - «Правда (True)», заполнена, то - «Ложь (False).

Настройки

...

Свойство

...

Описание

...

Тип

...

Пример заполнения

...

Обязательность заполнения поля

...

Параметры

...

Контекст

...

Контекст действия для работы с Excel-документом

...

Robin.Excel

...

Контекст excel

...

Да

...

Имя столбца

...

Наименование столбца, из которого будут получены данные. Если поле не заполнено, то берется значение из поля «Индекс столбца».

...

Robin.String

...

Нет

...

Индекс столбца

...

Индекс столбца, из которого будут получены данные. Индексация начинается с 0. Если заполнено поле «Имя столбца», то значение в поле «Индекс стобца» игнорируется. Значение по умолчанию равно 0.

...

Robin.Numeric

...

Нет

...

Индекс строки

...

Индекс строки, из которой будут получены данные. Индексация начинается с 0.

...

Robin.Numeric

...

Да

...

Результат

...

Переменная, в которую будет записано значение из ячейки. Если ячейка: пустая, то - «Правда (True)», заполнена, то - «Ложь (False)»

...

Robin.Boolean

...

true

Особые условия использования

Отсутствуют

Пример использования 

Задача

...

DescriptionTask

The action checks whether the value in the cell is empty.

Action icon

Image Added

Action parameters

Input parameters  

  1. Context - Action context for working with Excel document.
  2. Column of the cell - Name of the column from which the data will be obtained. If the field is not filled in, the value from the "Column Index" field is taken. For example: С.
  3. Column index - Index of the column from which the data will be obtained. Indexing starts from 0. If the "Column of the cell" field is filled, the value in the "Column index" field is ignored. The default value is 0.
  4. Row of the cell - The index of the row from which the data will be retrieved. The indexing starts at 0. For example: 3.

Output parameters

  1. The output is a variable to which the value from the cell will be written. If the cell is empty, then - "True", if filled, then - "False".

Settings

Property

Description

Type

Example of filling in

Obligatory to fill in the field

Parameters

Context

Action context for working with an Excel document

Excel instance

Excel context

Yes

Column of the cell

Name of the column from which the data will be obtained. If the field is not filled in, the value from the "Column index" field is taken.

String


Нет

Column index

Index of the column from which the data will be retrieved. Indexing starts from 0. If the "Column of the cell" field is filled, the value in the "Column index" field is ignored. The default value is 0.

Numeric


Нет

Row of the cell

Index of the row from which the data will be retrieved. Indexing starts from 0.

Numeric


Да

Results

Result

Variable to which the value from the cell will be written. If the cell is empty, then - "True", if filled, then - "False"

Boolean

true


Special conditions of use

None.

Example of use 

Task

There is an Excel document in which values are written. It is required to check if the value in cell C3 is filled. And then display a dialog box with the message "Cell is empty" or "Cell is not empty". 

image2024-1-23_15-33-16.png

Решение

Solution

Use the actions "OpenВоспользоваться действиями "Открыть", "Is cell empty", "If", "Show message". 

Реализация 

Implementation 

  1. Assemble a robot scheme consisting of actionsСобрать схему робота, состоящую из действий:



  2. Настроить параметры для действия  "Открыть"Customize the settings for the "Open" action:



  3. Настроить параметры для действия "Проверить пустая ли ячейка"Customize the parameters for the "Is cell empty" action:



  4. Настроить параметр для действия Set the parameter for the "If" action.


    Настроить параметры для действия

  5. Configure parameters for the "Show message" action (для ветки for the "True" branch)



  6. ДалееNext, для ветки for the "False" branch.

  7. Запустить робота по кнопке "Старт" в верхней панелиLaunch the robot using the "Start" button in the top panel

Результат 

Result 

The program robot completed successfullyПрограммный робот отработал успешно.


Оповещение

о заполнении ячейки выведено в диалоговое окноThe cell fill alert is displayed in a dialog box