Console
hyTags
Home
Home
Documentation
Documentation
selection-is-last-child
Checks if the selected element is the last child of its parent.
Parameter
Type
Description
return
bool
True if last child, false otherwise
Test Case:
Check if element is last child
<div></div>
<div></div>
<selection-is-last-child> <assert-true>
<selection-is-last-child> <assert-true>
👆 Try to change something!
Live preview
Run
Array
Assert
Attribute
Bool
Class
Closure
Cookie
Data
Date
DateTime
Debug
Element
Error
Event
Form
Fragment
Function
If
Input
Items
Javascript
Loop
Number
Object
Page
Property
Rect
Request
Response
Selection
Storage
String
Style
Time
Url
Value
Var
Window
Quick Reference
Test succeeded
Test failed